2to3?
2to3?
Posted May 30, 2025 21:46 UTC (Fri) by Cyberax (✭ supporter ✭, #52523)In reply to: 2to3? by mb
Parent article: Recent disruptive changes from Setuptools
> Nope. The actual problem was that many developers only ever tested ascii and delivered their software if it was "good".
And I would take that over Py3 string mess. It could have been easily fixed by just setting the string encoding to utf-8.
> If you handle strings you *need* to be aware of (2). Always.
No, you don't. If you're only using string operations for protocol-level stuff, like splitting the HTTP headers on a ":" character, then you can just treat strings as bags of bytes. Same for filesystem operations.
