Python 3: threat or menace? (O'Reilly)
Python 3: threat or menace? (O'Reilly)
Posted Sep 27, 2014 4:11 UTC (Sat) by Cyberax (✭ supporter ✭, #52523)In reply to: Python 3: threat or menace? (O'Reilly) by raven667
Parent article: Python 3: threat or menace? (O'Reilly)
Answer: it's a mess, actually. There's a special variable PYTHONENCODING, then there's logic to get it from the normal environment. And don't get me started on Unicode on Windows. And I still don't understand what advantages we get out of it.
I'm really glad that modern languages like Go and Rust did not go down the rabbit hole with a magic 'unicode' type that leaks all over the place but instead simply provide convenient utilities for UTF-8 encoded strings.
