Linux distributions and Python 2
Linux distributions and Python 2
Posted Mar 5, 2021 15:59 UTC (Fri) by LtWorf (subscriber, #124958)In reply to: Linux distributions and Python 2 by pizza
Parent article: Linux distributions and Python 2
Anyway for "random data in the world" python3 is way better than python2. Which is why the change was made.
In python2 you couldn't really rely on ranges or indexes on strings, because you never knew if you would be splitting a unicode sequence and creating something broken.
But, it worked most of the times… it would just fail when unexpected unicode sequences appeared.
Posted Mar 5, 2021 16:15 UTC (Fri)
by foom (subscriber, #14868)
[Link]
But, it works most of the time… it will just fail when unexpected unicode sequences appear (combining accents, or emoji skin tone modifiers, or flags, or ...)
Contrast this with perl6, which has built in support for correctly preserving grapheme clusters in it's string methods.
Linux distributions and Python 2