[Tutor] Tutor Digest, Vol 110, Issue 74

Timo timomlists at gmail.com
Wed Apr 17 18:46:05 CEST 2013


Op 17-04-13 18:09, Jim Mooney schreef:
>> The script 2to3.py is run from the system's terminal/console shell
>> (e.g. cmd or PowerShell on Windows), not the python shell.
> Yay, it worked! A decade of Windows and I'm back to the DOS Command
> Line ;')
If you want to program, the command line is your friend. You'll see it 
alot more.

> Well, it worked the second time.I thought I could do without
> the -w but nothing happened. Now I'll go edit Path so I'm not typing
> in all those directories.  2to3 doesn't seem to do anything without
> the -w, which I find a tad puzzling.
 From the 2to3 --help:

   -w, --write           Write back modified files

So it's normal nothing happens to your files without the -w argument. It 
just prints the changes to stdout.

Timo

>
> Jim
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list