7 ms·
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 :-/
by rburhum 12y 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 :-/
- qznc 12y agoA practical perspective depends very much on your specific use case. Server programming? Scripting? Scientific computing? Games? Tooling?
- rburhum 12y agoI am honestly curious if there is a good argument for any of the examples you mentioned.
- qznc 12y agoScripting 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.
- rburhum 12y agoI 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?