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 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: References: 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 In Gary Roach writes: > Traceback (most recent call last): > File "/root/mystuff/mystuff/ex39_test.py", line 6, in > 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"