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

Pretty much everything you've described is possible in Python. The open function can return bytes or utf8, depending on what you ask for, and converting between the two is simply a call to .decode or .encode.

Combing text with bytes is a type error.

There, you're ready for text in python3.




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

Search: