3 ms·
How do you get sane byte handling without breaking backward compatibility? I thought that was the original reason for breaking compatibility in Py3k.
by rcthompson 10y ago
How do you get sane byte handling without breaking backward compatibility? I thought that was the original reason for breaking compatibility in Py3k.
- daveguy 10y agoSane is py2. Default is bytes not some Unicode string. If you want Unicode use u"". If you want what is usually needed in algorithms (aka bytes) use "".
- mfukar 10y ago> what is usually needed in algorithms Depends what you're working with, obviously.
- cthalupa 10y agoIf you think py2 is the sane one, then you must work on a project where everything is written and communicated in bone standard roman characters. For the vast majority of the actual planet, this simply isn't the case.
- rcthompson 10y agoSo you admit that byte strings and Unicode strings are different data types, yet you claim that Python 2 is the sane one for choosing to both using exactly the same class?