On Tue, 12 Oct 2010 03:19:22 am Jack Uretsky wrote: > Hi- > I apologize for the size of the attached file, but the question > would make little sense if I made substantial deletions. > The program gives the following error: > Traceback (most recent call last): > File "/Javastuff/python/Glau_Is.py", line 131, in <module> > Adestin[state]() > TypeError: 'NoneType' object is not callable
The question makes perfect sense without even looking at the attached file. Adestin[state] returns None, which you attempt to call as a function. The questions you should be asking yourself are: - what value am I expecting it to contain? - where in my code should that value be set? - why is it setting None instead? Armed with these three questions, you now know how to debug the problem yourself. -- Steven D'Aprano _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor