running python 2 vs 3

Marko Rauhamaa marko at pacujo.net
Thu Mar 20 21:30:57 CET 2014


Mark Lawrence <breamoreboy at yahoo.co.uk>:

> The starter is 2to3 which had been in the standard library for what
> seems like an eternity to me.

No problem there. It helps you transition from python2 to python3.

However, python3 is here and you should be able to write genuine python3
code with the appropriate bytes and string facilities. It would be very
confusing to try to mix the two regimes.

I must say, though, that Python3 destroyed "print" forever for me. To
avoid nausea, I write sys.stdout.write() in all Python3 code.


Marko



More information about the Python-list mailing list