Re: Executing Python Scripts on Mac using Python Launcher

2012-06-27 Thread Hans Mulder
On 27/06/12 22:45:47, David Thomas wrote: > Thank you ever so much raw_input works fine. > Do you think I should stick with Python 2 before I go to 3? I think so. The differences are not that big, but big enough to confuse a beginner. Once you know pyhton2, read http://docs.python.org/py3k/what

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-27 Thread David Thomas
Thank you ever so much raw_input works fine. Do you think I should stick with Python 2 before I go to 3? I have a text book which is using 3 but I've been using an online tutorial which has been helping me lots, which uses version 2. I found by just typing python then having a space and dragging

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-27 Thread Hans Mulder
On 27/06/12 19:05:44, David Thomas wrote: > Is this why I keep getting an error using launcher? No. Yesterday your problem was that you tried this: input("\n\nPress the enter key to exit") That works fine in Pyhton3, but you are using python2 and in python2, the you must do this instead:

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-27 Thread David Thomas
On Tuesday, June 26, 2012 10:48:22 PM UTC+1, Hans Mulder wrote: > On 26/06/12 22:41:59, Dave Angel wrote: > > On 06/26/2012 03:16 PM, Hans Mulder wrote: > >> > >> > >> Python is an executable, and is > >> typically located in a "bin" directory. To find out where > >> it is, type > >> > >> ty

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Dave Angel
On 06/26/2012 05:48 PM, Hans Mulder wrote: > On 26/06/12 22:41:59, Dave Angel wrote: > > No, I meant: $ type python python is > /Library/Frameworks/Python.framework/Versions/2.7/bin/python 'type' is > a bash builtin that tells you how bash would interpret a command. > 'which' is a separate progra

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Mark Lawrence
On 26/06/2012 23:35, Dennis Lee Bieber wrote: (And, on Windows at least, #! lines don't do anything) New for Python 3.3 http://www.python.org/dev/peps/pep-0397/ -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Hans Mulder
On 26/06/12 22:41:59, Dave Angel wrote: > On 06/26/2012 03:16 PM, Hans Mulder wrote: >> >> >> Python is an executable, and is >> typically located in a "bin" directory. To find out where >> it is, type >> >> type python >> >> at the shell prompt (that's the first prompt you get if you >> ope

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Dave Angel
On 06/26/2012 03:16 PM, Hans Mulder wrote: > > > Python is an executable, and is > typically located in a "bin" directory. To find out where > it is, type > > type python > > at the shell prompt (that's the first prompt you get if you > open a Terminal window). > > That's a typo. You presu

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Hans Mulder
On 26/06/12 21:51:41, Dennis Lee Bieber wrote: > On Tue, 26 Jun 2012 10:19:45 -0700 (PDT), David Thomas > declaimed the following in gmane.comp.python.general: > > >> http://www.freeimagehosting.net/ilbqt > > That's an interesting configuration... > > "pythonw.exe" is a version of

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Hans Mulder
On 26/06/12 20:11:51, David Thomas wrote: > On Monday, June 25, 2012 7:19:54 PM UTC+1, David Thomas wrote: >> Hello, >> This is my first post so go easy on me. I am just beginning to program >> using Python on Mac. When I try to execute a file using Python Launcher my >> code seems to cause an

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Benjamin Kaplan
On Tue, Jun 26, 2012 at 10:19 AM, David Thomas wrote: > I have installed Python 2.7.3 from Python.org also in Terminal it states that > I have 2.7.3. > How can I execute the script from Terminal?  I've tried typing python into > the window and then dragging the file to terminal but I get a synta

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
On Monday, June 25, 2012 7:19:54 PM UTC+1, David Thomas wrote: > Hello, > This is my first post so go easy on me. I am just beginning to program using > Python on Mac. When I try to execute a file using Python Launcher my code > seems to cause an error in terminal, when I execute the exact same

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Dave Angel
(You forgot to include the list on this message, but I'm including them in my reply) On 06/26/2012 02:07 PM, David Thomas wrote: > > > On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: >> >> On 06/26/2012 01:19 PM, David Thomas wrote: >>> I have installed Python 2.7.3 from Python.or

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states > > that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into > > the wi

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Dave Angel
On 06/26/2012 01:19 PM, David Thomas wrote: > I have installed Python 2.7.3 from Python.org also in Terminal it states that > I have 2.7.3. > How can I execute the script from Terminal? I've tried typing python into > the window and then dragging the file to terminal but I get a syntax error.

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-25 Thread Benjamin Kaplan
On Mon, Jun 25, 2012 at 11:19 AM, David Thomas wrote: > Hello, > This is my first post so go easy on me.  I am just beginning to program using > Python on Mac.  When I try to execute a file using Python Launcher my code > seems to cause an error in terminal, when I execute the exact same piece o

Executing Python Scripts on Mac using Python Launcher

2012-06-25 Thread David Thomas
Hello, This is my first post so go easy on me. I am just beginning to program using Python on Mac. When I try to execute a file using Python Launcher my code seems to cause an error in terminal, when I execute the exact same piece of code and run it in windows it seems to execute as exactly in