|
|
|
|
|
by wladimir
5584 days ago
|
|
Python3 has the 'bytes' type, which can be used for the same things that 'str' was used for in Python 2.x . So you don't lose any functionality, just rename your types. As an added bonus, the name 'bytes' makes it very clear, that you're dealing with raw data. Strings have become a data-type solely for human-readable text. For these, it makes perfect sense to only support unicode. |
|