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

This post made me move to Python 3. I replaced all print statements, in the code I am currently working on, with print functions, and yum-installed python3 versions of the libraries.

The code ran correctly on first try. Guess I was lucky, should have made the shift earlier!




Does your code use division, and do you have unit tests for at least those parts? Because the same code will compile and run in either version, but you'll get different results, depending.


Thanks for the heads up. Fortunately I was aware of the kinks with division, so it caused no trouble.


Just be aware of the unicode differences between the two versions and you should be fine with Python 3.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: