Lesson 39 of Learning Python the Hard Way hangs (Fixed?)
gary719_list1 at verizon.net
Thu Sep 10 01:58:30 CEST 2015
On 09/09/2015 01:45 PM, John Gordon wrote:
> In <mailman.280.1441823265.8327.python-list at python.org> Gary Roach <gary719_list1 at 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.
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
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.
PS I copied over my code with the one from the lesson and all of a
sudden it works. I then used the code I copied to the email. It also
worked. Now I can't duplicate the problem. The problems fixed but ....
More information about the Python-list