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

> Python 2 has ASCII str() types, separate unicode(), but no byte type.

This is incorrect in at least two ways:

- Python 2.7.x str is _not_ ASCII! "\xff" is totally valid, but not a valid ASCII string.

- Python 2.7.x has bytearray.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: