Two Questions about Python on Windows

Terry Reedy tjreedy at udel.edu
Thu Apr 3 14:34:39 EDT 2014


On 4/3/2014 1:06 PM, Walter Hurry wrote:
> Normally my Python development is done on FreeBSD and Linux. I know that on *ix I simply have to make foo.py executable (the shebang line is present, of course) to make it runnable.
>
> For my son's school assignment, I have to help him with Python for Windows.
>
> As I understand it, on Windows a .py file is not executable, so I need to run 'python foo py', or use a .pyw file.

If he edits the file with Idle (see Start menu Python directory, F5 runs 
the file and uses the Idle shell for input and output. When the program 
finishes, one can interactively examine objects and call functions. F5 
Run is like running a program from a console with -I.

-- 
Terry Jan Reedy




More information about the Python-list mailing list