Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.05; 'happens.': 0.09; 'key)': 0.09; 'typeerror:': 0.09; 'thread': 0.10; 'iterable': 0.16; 'received:206.46': 0.16; 'received:206.46.173': 0.16; 'subject:Learning': 0.16; 'wrote:': 0.16; 'why.': 0.18; 'skip:" 30': 0.20; 'not,': 0.22; 'assuming': 0.22; 'code.': 0.23; 'seems': 0.23; "haven't": 0.24; 'tried': 0.24; '(most': 0.24; 'header:User-Agent:1': 0.26; 'command': 0.26; 'error': 0.27; 'page.': 0.28; '50,': 0.29; "i'm": 0.30; 'code': 0.30; 'error.': 0.31; 'post': 0.31; 'run': 0.33; 'message.': 0.33; 'traceback': 0.33; 'case,': 0.34; 'editor': 0.34; 'file': 0.34; 'list': 0.34; 'gives': 0.35; 'execution': 0.35; 'saved': 0.35; 'reply.': 0.35; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'client': 0.37; 'thanks': 0.37; 'list.': 0.37; 'drop': 0.38; 'end': 0.39; 'sure': 0.39; 'does': 0.39; 'subject:the': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'still': 0.40; 'header:MIME-version:1': 0.60; 'your': 0.60; 'john': 0.61; 'us.': 0.62; 'charset:windows-1252': 0.62; 'personal': 0.63; 'received:206': 0.63; 'dont': 0.64; 'note:': 0.66; 'header:In-reply-to:1': 0.84; 'received:192.168.1.7': 0.91; 'choice.': 0.93 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=Nc0brD34 c=1 sm=1 tr=0 a=AstGAA2XJoPAehtj9MTdvA==:117 a=o1OHuDzbAAAA:8 a=oR5dmqMzAAAA:8 a=N659UExz7-8A:10 a=ff-B7xzCdYMA:10 a=8AHkEIZyAAAA:8 a=lYMftr7RUf-ZsuENjo0A:9 a=pILNOxqGKmIA:10 Date: Wed, 09 Sep 2015 14:53:10 -0700 From: Gary Roach User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-version: 1.0 To: python-list@python.org Subject: Re: Lesson 39 of Learning Python the Hard Way hangs References: In-reply-to: Content-Type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-Mailman-Approved-At: Thu, 10 Sep 2015 07:00:22 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441861224 news.xs4all.nl 23753 [2001:888:2000:d::a6]:34253 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96238 On 09/09/2015 01:45 PM, John Gordon wrote: > 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. > No other code. Ninja-IDE tacked the "Execution Successful" at the end if the error message. Dont know why. Interesting that you ran the code successfully. I have tried to run the code in both Ninja and at the command line and got the exact same error message. A note: If you could, please post your replies to the list. If you don't, it either breaks the thread or ends up sending a copy to my personal email address. I am assuming that your email client gives you that choice. If not, I'm not sure how you would assure that the proper way happens. I use the icedove (thunderbird) mail client and the choice is a drop down list at the top of the mail editor page. Thanks for your reply. Still confused Gary R.