"python -3" not working as expected
Steve Holden
steve at holdenweb.com
Thu Jan 8 12:15:03 EST 2009
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?
>
I *believe* that's not flagged because 2to3 will fix it automatically.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list