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


Groups > comp.lang.python > #96225

Re: Lesson 39 of Learning Python the Hard Way hangs

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: Lesson 39 of Learning Python the Hard Way hangs
Date Wed, 9 Sep 2015 20:45:57 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 21
Message-ID <msq5q5$jg3$1@reader1.panix.com> (permalink)
References <mailman.280.1441823265.8327.python-list@python.org>
NNTP-Posting-Host panix1.panix.com
X-Trace reader1.panix.com 1441831557 19971 166.84.1.1 (9 Sep 2015 20:45:57 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Wed, 9 Sep 2015 20:45:57 +0000 (UTC)
User-Agent nn/6.7.3
Xref csiph.com comp.lang.python:96225

Show key headers only | View raw


In <mailman.280.1441823265.8327.python-list@python.org> Gary Roach <gary719_list1@verizon.net> writes:

> Traceback (most recent call last):
>    File "/root/mystuff/mystuff/ex39_test.py", line 6, in <module>
>      hashmap.set(states, 'Oregon', 'OR')
>    File "/root/mystuff/mystuff/hashmap.py", line 50, in set
>      i, k, v = get_slot(aMap, key)
> TypeError: 'NoneType' object is not iterable

> Execution Successful!

Where does the message "Execution Successful!" come from?  It seems like
you have other code that you haven't shown us.

In any case, I saved your code and ran it, and did not get an error.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

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


Thread

Lesson 39 of Learning Python the Hard Way hangs Gary Roach <gary719_list1@verizon.net> - 2015-09-09 10:27 -0700
  Re: Lesson 39 of Learning Python the Hard Way hangs John Gordon <gordon@panix.com> - 2015-09-09 20:45 +0000
    Re: Lesson 39 of Learning Python the Hard Way hangs Denis McMahon <denismfmcmahon@gmail.com> - 2015-09-09 21:36 +0000
    Re: Lesson 39 of Learning Python the Hard Way hangs (Fixed?) Gary Roach <gary719_list1@verizon.net> - 2015-09-09 16:58 -0700
    Re: Lesson 39 of Learning Python the Hard Way hangs (Fixed?) Gary Roach <garyroach@verizon.net> - 2015-09-09 16:58 -0700
      Re: Lesson 39 of Learning Python the Hard Way hangs (Fixed?) YBM <ybmess@nooos.fr.invalid> - 2015-09-10 03:42 -0300
    Re: Lesson 39 of Learning Python the Hard Way hangs Gary Roach <garyroach@verizon.net> - 2015-09-09 14:53 -0700

csiph-web