Oh no, my code is being published ... help!

Eduardo O. Padoan eduardo.padoan at gmail.com
Fri Nov 30 15:25:25 CET 2007


On Nov 30, 2007 11:36 AM, Hrvoje Niksic <hniksic at xemacs.org> wrote:
> "Eduardo O. Padoan" <eduardo.padoan at gmail.com> writes:
>
> > No, writing this way will confound the 2to3 tool.
>
> Why?  print("foo") is a perfectly valid Python 2 statement.  Maybe
> it's simply a matter of fixing the tool.
>

print("foo") -> print(("foo"))

If you have any idea of how the tool could understand what you meant,
please report it at bugs.python.org :)

-- 
http://www.advogato.org/person/eopadoan/
Bookmarks: http://del.icio.us/edcrypt



More information about the Python-list mailing list