On Sat, 22 May 2010 17:16:40 -0700, Lanny wrote: > Ideally roomlist['start_room'].exits would equal {'aux_room' : 'west', > 'second_room' : 'north'} but it doesn't. Sorry if this is unclear or too > long, but I'm really stumped why it is giving bad output
Just to condense a point which the other responses don't (IMHO) make particularly clear: Unlike most other OO languages, Python doesn't make instance members appear as variables within methods; you have to explicitly access them as members of "self", i.e. "self.exits" for the "exits" member of the current instance ("self"). -- http://mail.python.org/mailman/listinfo/python-list