Re: [Tutor] Running .py files in shell

2011-09-22 Thread Steven D'Aprano
Robert Layne wrote: Well everybody, sorry for the incomplete sentences and overall poor English but I wanted to make this simple to read and understand for someone who is completely inexperienced in any sort of programming, Generally speaking, incomplete sentences and overall poor English mak

Re: [Tutor] Running .py files in shell

2011-09-21 Thread Robert Layne
Well everybody, sorry for the incomplete sentences and overall poor English but I wanted to make this simple to read and understand for someone who is completely inexperienced in any sort of programming, as I am (very first day messing with this stuff, e.g., terminal). This is the result of hou

Re: [Tutor] Running .py files in shell

2010-07-28 Thread Alan Gauld
"Kevin Rapley" wrote The simplest way is to put a "shebang" line at the top of your script and then make them executable: $ cat> myscript.py What is the significance of this and how do I use it? >>> cat > tryme1.py Notice the difference in the prompt. A dollar sign is the generic way o

Re: [Tutor] Running .py files in shell

2010-07-28 Thread David Hutto
On Wed, Jul 28, 2010 at 2:39 AM, Kevin Rapley wrote: > >>> I am running Mac OSX v10.6.4 Snow Leopard >>> I am running Python 2.6.1 >> >> In general get the MacPython distributions of Python etc, they usually >> install easier (ie from the GUI) than the "Unix" based versions. > > Okay, thanks. I wi

Re: [Tutor] Running .py files in shell

2010-07-28 Thread Kevin Rapley
I am running Mac OSX v10.6.4 Snow Leopard I am running Python 2.6.1 In general get the MacPython distributions of Python etc, they usually install easier (ie from the GUI) than the "Unix" based versions. Okay, thanks. I will look into that. 1. How do I execute .py files in the command line sh

Re: [Tutor] Running .py files in shell

2010-07-27 Thread Alan Gauld
"Kevin Rapley" wrote I am running Mac OSX v10.6.4 Snow Leopard I am running Python 2.6.1 In general get the MacPython distributions of Python etc, they usually install easier (ie from the GUI) than the "Unix" based versions. 1. How do I execute .py files in the command line shell? I have my