3 ms·
One major plus in the differences is that Python3 makes standard libraries always return text or bytes, instead of depending on the input to decide on the retur
by rtpg 10y ago
One major plus in the differences is that Python3 makes standard libraries always return text or bytes, instead of depending on the input to decide on the return type.
This( + no longer allowing "encoding" of bytes or "decoding" of unicode) means that you have a much higher chance of writing correct code when it comes to handling encodings.