[Tutor] Classes: global name not defined

2007-09-12 Thread Ara Kooser
So taking the advice given my John, Kent, and Michael I reworked the program and created a class for world. I was able to solve the first several errors that came up as a I moved functions into class methods but this one stumps me. The error I am getting is: Traceback (most recent call last):

Re: [Tutor] Classes: global name not defined

2007-09-12 Thread Alan Gauld
Ara Kooser [EMAIL PROTECTED] wrote File /Users/ara/Documents/yeast/oop_yeast_nocaps.py, line 87, in module first_instance.print_world() File /Users/ara/Documents/yeast/oop_yeast_nocaps.py, line 40, in print_world m, n = world['dimensions'] NameError: global name 'world' is not