Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Python 3, on the other hand, if you ever treat bytes as a string, forces you to have an opinion about the encoding.

Of course. How else can you translate the bytes into a meaningful textual representation without an encoding?

Python 3 requires you to consider the real world, and that’s a good thing.

(Apart from when you want to port sloppily written Python on 2.x code)



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

Search: