Re: [Tutor] Problems with Importing into the Python Shell

2010-06-12 Thread Alan Gauld
"Andrew Martin" wrote am having some trouble. First off, I do not understand how to import things into the python shell. I have a script I saved as chap03.py, but when I try to import it into the python shell i get an error like this: from chap03 import * Traceback (most recent call last

Re: [Tutor] Problems with Importing into the Python Shell

2010-06-12 Thread Steven D'Aprano
On Sat, 12 Jun 2010 02:50:26 pm Andrew Martin wrote: > >>> from chap03 import * > > Traceback (most recent call last): > File "", line 1, in > from chap03 import * > File "C:/Python26\chap03.py", line 2 > print param param > ^ > SyntaxError: invalid syntax This te

Re: [Tutor] Problems with Importing into the Python Shell

2010-06-12 Thread Mark Lawrence
On 12/06/2010 05:50, Andrew Martin wrote: Hey, everyone, I am new to programming and just downloaded Python 2.6 onto my windows vista laptop. I am attempting to follow 4.11 of the tutorial called "How to Think Like a Computer Scientist: Learning with Python v2nd Edition documentation" ( http://op

[Tutor] Problems with Importing into the Python Shell

2010-06-11 Thread Andrew Martin
Hey, everyone, I am new to programming and just downloaded Python 2.6 onto my windows vista laptop. I am attempting to follow 4.11 of the tutorial called "How to Think Like a Computer Scientist: Learning with Python v2nd Edition documentation" ( http://openbookproject.net/thinkcs/python/english2e/c