News for hackers. Stuff that matters.
Re:The History and rationale of the Python 3 Unicode model f... by Jasper_ on Wednesday December 14, 2022 @11:27AM (#33985812)
It's worth noting that Python str's are sequences of code points, not scalar values. This was a truly horrendous mistake made mostly out of ignorance, but now they rely upon it in surrogateescape to hide "invalid" data, so...

I have ranted for long hours go friends about the insanity of Python 3's text model before. It's mostly the blind leading the blind.

Re:The History and rationale of the Python 3 Unicode model f... by 323 on Wednesday December 14, 2022 @11:37AM (#33985979)
I've seen this happen multiple times in Python, where they implement a feature without a thorough survey of what other languages are doing. Then when it turns out the new feature has a major broken part, they fix that, but again, without looking how it's done in other places. asyncio is a major example.