Re: 2to3 Help?

2009-03-05 Thread Ant
On Jan 15, 6:43 am, "James Mills" wrote: ... > That is a good idea :) Windows teaches you nothing! Not true. Windows teaches you the art of the workaround... -- http://mail.python.org/mailman/listinfo/python-list

Re: 2to3 Help?

2009-03-05 Thread John Machin
On Mar 5, 6:47 pm, jjh wrote: > On Jan 14, 10:01 pm, marco.m.peter...@gmail.com wrote: [snipped] > Sorry to bring this back up. The correct thing to do is to start a NEW post. Marco's problem is nothing to do with yours. > I'm a newbie trying to run 2to3 on > Windows. I ran the following: >

Re: 2to3 Help?

2009-03-04 Thread jjh
On Jan 14, 10:01 pm, marco.m.peter...@gmail.com wrote: > I have Python 3.0. I tried to use the 2to3 program included with the > interpreter to convert some scripts for Python 2.5 to Python 3.0 ones. > When I try to start it form the Python command line, it says it is a > syntax error. > > This was

Re: 2to3 Help?

2009-01-15 Thread Terry Reedy
marco.m.peter...@gmail.com wrote: I have Python 3.0. I tried to use the 2to3 program included with the interpreter to convert some scripts for Python 2.5 to Python 3.0 ones. I believe 2to3 is will work 'best' with files modified to use some new 2.6 features (backported from 3.0) where 'best' m

Re: 2to3 Help?

2009-01-14 Thread John Machin
On Jan 15, 5:52 pm, marco.m.peter...@gmail.com wrote: > Oh okay. I don't think my Python installation is in PATH yet. I'll try > to add it then. Am I permitted to ask a really silly question? Thanks. Here it is: How much working 2.X code do you have that needs migrating from 2.x to 3.x? Cheers, J

Re: 2to3 Help?

2009-01-14 Thread marco . m . petersen
> I don't yet have 3.0 installed, but my guess is you'll also need to > have 'C:\Python30\Scripts' in your path as well. I'm assuming that's > where it resides, so check first. Its in C:\Python30\Tools\Scripts. Anyway it now works. C:\Documents and Settings\User>python C:\Python30\Tools\Scripts

Re: 2to3 Help?

2009-01-14 Thread alex23
On Jan 15, 4:52 pm, marco.m.peter...@gmail.com wrote: > Oh okay. I don't think my Python installation is in PATH yet. I'll try > to add it then. I don't yet have 3.0 installed, but my guess is you'll also need to have 'C:\Python30\Scripts' in your path as well. I'm assuming that's where it resides

Re: 2to3 Help?

2009-01-14 Thread marco . m . petersen
Oh okay. I don't think my Python installation is in PATH yet. I'll try to add it then. -- http://mail.python.org/mailman/listinfo/python-list

Re: 2to3 Help?

2009-01-14 Thread alex23
On Jan 15, 4:32 pm, marco.m.peter...@gmail.com wrote: > I tried to run it on the command prompt (I use Windows XP) but it > doesn't work either. > '$' is not recognized as an internal or external command, > operable program or batch file. '$' is used in the instructions to denote a command prompt.

Re: 2to3 Help?

2009-01-14 Thread James Mills
On Thu, Jan 15, 2009 at 4:32 PM, wrote: > I tried to run it on the command prompt (I use Windows XP) but it > doesn't work either. I did not realize you were using WIndows :) Normally most shells in the UNIX/Linux world start with a '$'. > I opened the command prompt: > > C:\Documents and Setti

Re: 2to3 Help?

2009-01-14 Thread marco . m . petersen
> You need to do 2 things: > > 1) Run 2to3 on the shell not the python interpreter. > 2) Learn some basic UNIX. > > cheers > James I tried to run it on the command prompt (I use Windows XP) but it doesn't work either. I opened the command prompt: C:\Documents and Settings\User> Then I typed '$

Re: 2to3 Help?

2009-01-14 Thread James Mills
On Thu, Jan 15, 2009 at 4:17 PM, wrote: $ 2to3.py testscript.py > File "", line 1 >$ 2to3.py testscript.py >^ > Syntax Error: Invalid Syntax Oh i see... You need to do 2 things: 1) Run 2to3 on the shell not the python interpreter. 2) Learn some basic UNIX. cheers James -- http://

Re: 2to3 Help?

2009-01-14 Thread marco . m . petersen
On Jan 15, 2:09 pm, "James Mills" wrote: > On Thu, Jan 15, 2009 at 4:01 PM,   wrote: > > I have Python 3.0. I tried to use the 2to3 program included with the > > interpreter to convert some scripts for Python 2.5 to Python 3.0 ones. > > When I try to start it form the Python command line, it says

Re: 2to3 Help?

2009-01-14 Thread James Mills
On Thu, Jan 15, 2009 at 4:01 PM, wrote: > I have Python 3.0. I tried to use the 2to3 program included with the > interpreter to convert some scripts for Python 2.5 to Python 3.0 ones. > When I try to start it form the Python command line, it says it is a > syntax error. > > This was the line of c

2to3 Help?

2009-01-14 Thread marco . m . petersen
I have Python 3.0. I tried to use the 2to3 program included with the interpreter to convert some scripts for Python 2.5 to Python 3.0 ones. When I try to start it form the Python command line, it says it is a syntax error. This was the line of code: $ 2to3 testscript.py Any help would be appreci