"python -3" not working as expected
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Thu Jan 8 11:26:55 EST 2009
On Thu, 08 Jan 2009 16:38:53 +0100, Thorsten Kampe wrote:
> [Python 2.6.1]
>
> Hi,
>
> to test existing Python code, I ran "python -3" ("warn about Python 3.x
> incompatibilities") against a test file that only contains "print
> 'test'".
>
> Unfortunately I saw no warnings about print becoming a function in
> Python 3 ("print()"). Where is the problem?
There is no problem. ``print``\s are handled fine by the 2to3.py
script. The option warns about stuff that is not easily automatically
converted.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list