Problem with -3 switch

J. Cliff Dyer jcd at sdf.lonestar.org
Fri Jan 9 19:36:59 CET 2009


On Fri, 2009-01-09 at 13:13 -0500, Steve Holden wrote:
> Aivar Annamaa wrote:
> >> As was recently pointed out in a nearly identical thread, the -3
> >> switch only points out problems that the 2to3 converter tool can't
> >> automatically fix. Changing print to print() on the other hand is
> >> easily fixed by 2to3.
> >>
> >> Cheers,
> >> Chris
> >>
> > 
> > I see.
> > So i gotta keep my own discipline with print() then :)
> > 
> Only if you don't want to run your 2.x code through 2to3 before you use
> it as Python 3.x code.
> 
> regards
>  Steve

And mind you, if you follow that route, you are programming in a
mightily crippled language.  It's about as bad as trying to write
cross-browser CSS.  Don't put yourself through that pain if you don't
have to.








More information about the Python-list mailing list