Hacker News new | ask | show | jobs
by rburhum 4088 days ago
OK... so from a _practical_ perspective, can someone tell me why I should move to python 3? None of the arguments presented to switch are strong enough :-/
1 comments

A practical perspective depends very much on your specific use case. Server programming? Scripting? Scientific computing? Games? Tooling?
I am honestly curious if there is a good argument for any of the examples you mentioned.
Scripting and Tooling becomes more robust wrt Unicode. You write a short script which works on some ASCII data. Later that ASCII suddenly becomes utf8. With Python 2 you could easily run into weird issues, when there is a unicode object instead of the expected str. With Python 3 decode is more explicit and robust.

Scripting and Tooling are the major uses of Python for me, so I like Python 3.

I always work with utf-8 strings that get passed around from native C code to python. So far I have never had an issue. The argument for me for unicode support seems weak. Is there anything else beyond string encode/decode/manipulation? You mentioned tooling... like what?