[Tutor] regex to promote Py 2 to Py 3?
Walter Prins
wprins at gmail.com
Wed Apr 17 10:40:38 CEST 2013
Hi,
On 17 April 2013 06:11, Jim Mooney <cybervigilante at gmail.com> wrote:
> > Generally the 2to3 script does an OK job. If you're using Windows it's
> > [Python_Dir]\Tools\Scripts\2to3.py.
> >
> > http://docs.python.org/3/library/2to3
> ================================
>
> Thanks. I didn't know where to find it and thought I had to install it.
>
> I opened a command window in my Python33/progs dir, started Python,
> and ran it on a tiny test program called loops.py but I get "invalid
> syntax" Any idea why?:
>
> >>> 2to3 loops.py
> File "<stdin>", line 1
> 2to3 loops.py
> ^
> SyntaxError: invalid syntax
As additional background to eryksun's response, please read this:
http://www.voidspace.org.uk/python/articles/command_line.shtml
Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130417/5bb7343a/attachment.html>
More information about the Tutor
mailing list