Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58701

Re: Python 3.3.2 Shell Message‏

Date 2013-11-07 21:10 +0000
From MRAB <python@mrabarnett.plus.com>
Subject Re: Python 3.3.2 Shell Message‏
References <BLU170-W124523D33F901E8DCE8E393ABF30@phx.gbl>
Newsgroups comp.lang.python
Message-ID <mailman.2157.1383858623.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 07/11/2013 20:02, Bart Montgomery wrote:
> My thanks to Ned Deily for his timely response. IDLE is now stable, and
> I’m at the next step which is to run the file I created called hello.py.
> I get this message from the shell:
>
> Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24)
>
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>
> Type "copyright", "credits" or "license()" for more information.
>
>  >>> hello.py
>
> Traceback (most recent call last):
>
> File "<pyshell#0>", line 1, in <module>
>
> hello.py
>
> NameError: name 'hello' is not defined
>
>  >>>
>
>
> Any assistance would be greatly appreciated.
>
That's the Python prompt ("Python 3.3.2 Shell" in the titlebar).

You can open the file with File->Open and then run it with Run->Run Module.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python 3.3.2 Shell Message‏ MRAB <python@mrabarnett.plus.com> - 2013-11-07 21:10 +0000

csiph-web