Re:Why Is the Migration to Python 3 Taking So Long?
by int_19h on Friday November 15, 2019 @03:08AM
(#21543149)
There was no way to gradually improve Unicode support in Python without breaking things, because a big part of it was stuff like implicit str/unicode conversions - that were broken because they practically never use the right encoding, but that you can't remove without introducing as much breakage as Python 3 did.
Re:Why Is the Migration to Python 3 Taking So Long?
by spronkey on Saturday November 16, 2019 @05:15AM
(#21551928)
You lack imagination here :) There are several solutions that could have been pursued, including introducing a completely new type and effectively duplicating the existing string library for it.
Re:Why Is the Migration to Python 3 Taking So Long?
by int_19h on Monday November 18, 2019 @02:01PM
(#21567076)
It's not just the string library that is affected. It's literally every API in the stdlib that returns a string. You'd have to fork all of those, because changing any of them to return a completely new type would be a breaking change as well.
Re:Why Is the Migration to Python 3 Taking So Long?
by Myrmornis on Friday November 15, 2019 @01:07AM
(#21542631)
Unicode support isn't about supporting unicode in files of source code!
Re:Why Is the Migration to Python 3 Taking So Long?
by takeda on Friday November 15, 2019 @01:13AM
(#21542657)
They did try to do it in Python 2 and intruded Unicode type. The problem was that not only it didn't help, it is the main reason why migration to Python 3 is so painful.
Re:Why Is the Migration to Python 3 Taking So Long?
by ogre_codes on Thursday November 14, 2019 @06:33PM
(#21540719)
You are replying out of context here. The comment I was replying to was specifically "Python3 still didn't deliver anything for most users". Which is just not true.
The question is rather whether it would have been better to gradually improve support for it in a Python2-esque way, rather than creating a discontinuity and a raft of new problems, some of which linger to this day.
Also, for many purposes, there is wide agreement that ASCII is still the way to go. Even if Americans vanished tomorrow, the majority of remaining programmers in the world would prefer to look at source code in English, which they already know, rather than a host of other languages, most of which they don't.