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


Groups > comp.lang.python > #94841

Re: I'm a newbie and I'm stumped...

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python3': 0.05; 'editor.': 0.09; 'nameerror:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; '"test': 0.16; "'))": 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; '>>>': 0.20; '"",': 0.22; 'defined': 0.23; '(most': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; 'skip:# 10': 0.27; "skip:' 10": 0.28; 'code:': 0.29; "i'd": 0.31; 'traceback': 0.33; 'file': 0.34; 'running': 0.34; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'mac': 0.37; 'test': 0.39; 'skip:e 20': 0.39; 'to:addr:python.org': 0.40; 'charset:windows-1252': 0.62; 'more': 0.63; 'mar': 0.65; 'received:12': 0.81; "'test'": 0.84; '3.4': 0.84; '2014,': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Emile van Sebille <emile@fenx.com>
Subject Re: I'm a newbie and I'm stumped...
Date Sat, 1 Aug 2015 09:30:08 -0700
References <D1E0EED9.10BBA2%Dwight@GoldWinde.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host www.westernstatesglass.com
User-Agent Mozilla/5.0 (Windows NT 6.2; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
In-Reply-To <D1E0EED9.10BBA2%Dwight@GoldWinde.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1133.1438446623.3674.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1438446623 news.xs4all.nl 2955 [2001:888:2000:d::a6]:49851
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:94841

Show key headers only | View raw


On 7/30/2015 6:22 PM, Dwight GoldWinde wrote:
> I am running Python 3.4 on my Mac mini, OS X 10.10.2, using Coderunner 2 as
> my editor.
>
> Here¹s the code:
> #!/usr/bin/env python3
> word = (input('Enter a word Œ))
>
> When running this inside of Coderunner, I get the follow error, after
> entering the word Œserendipity¹:
>
> Enter a word serendipity
> Traceback (most recent call last):
>    File "test short.py", line 2, in <module>
>      word = (input('Enter a word '))
>    File "<string>", line 1, in <module>
> NameError: name 'serendipity' is not defined

I'd look at which python is actually running (sys.version):

Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
 >>> word = (input('enter a word '))
enter a word test
 >>>
emile@emile-OptiPlex-9010:~$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> word = (input('enter a word '))
enter a word test
Traceback (most recent call last):


Emile
   File "<stdin>", line 1, in <module>
   File "<string>", line 1, in <module>
NameError: name 'test' is not defined
 >>>


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


Thread

Re: I'm a newbie and I'm stumped... Emile van Sebille <emile@fenx.com> - 2015-08-01 09:30 -0700

csiph-web