Running Scripts vs Interactive mode

grobs456 gregory.alexander.roberts at
Wed Feb 23 23:22:36 CET 2011


I am trying to work through the tutorial at:

The issue I am facing is with regards to the discussion about
"Invoking the Interpreter" and "Executable Python Scripts". It was
rather hazy in my opinion.


I realize I can double click on a .py file and Windows treats it as an
executable but the command prompt pops in and out so quickly that I
can't see the results of my script.

I would prefer to follow along with the tutorial, compiling new ticks
and topics into a growing .py file, that I error check of course(in
case the same variables are used throughout the tutorial), and then
run that file to see the results as if I would have typed each line in
one at a time. This way I have something usable to refer back to for
learning purposes and for future coding projects instead of having to
rely on the tutorial itself for my reference moving forward. Any

Python is installed at:

and I ran:
set path=%path%;C:\python27

#do i have to run the above each time I open up a session?
#Also, note that  I do not see the any system environment variables
get updated when I run the above.

More information about the Python-list mailing list