Re:Python 3 makes it easier to develop high-quality software
by Avernar on Thursday November 19, 2015 @02:13AM
(#10593229)
> But seriously, all what python (and as a matter of the fact majority of languages) is placing a clear distinction between a byte and a character.
No, they make a clear distinction between bytes and code points. This is the wrong approach as code points are not characters. People are going to think that everything is fine now that they're using code points and the unicode type when they should be using a unicode library for text manipulation.
But seriously, all what python (and as a matter of the fact majority of languages) is placing a clear distinction between a byte and a character. This forces developers to keep in mind what they are dealing with and reduces number of bugs.
The truth is that if you treat everything as bytes, chances are that your program has bugs. Actually good test is to convert your existing Py2 code to Py3, if you have encoding/decoding errors then your code was buggy.