Hacker News new | past | comments | ask | show | jobs | submit login

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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: