Re: Dynamic objects

2006-08-17 Thread Larry Bates
Mark Shewfelt wrote: > Hello, > > I have implemented a series of classes representing a Building, its > respective Equipment, and then various Components of that equipment > like so (as you'll be able to tell, I'm a newbie): > > class Building: > equipment = {} > def AddEquipment( name,

Re: Dynamic objects

2006-08-17 Thread Mark Shewfelt
Thanks a lot Tim! My __init__ functions didn't set the dictionaries like you did below (e.g. self.equipment = {} ). Newbie mistake - won't make that one again. Thanks again, Mark Tim wrote: > Mark Shewfelt wrote: > > Hello, > > > > I have implemented a series of classes representing a Buildin

Re: Dynamic objects

2006-08-17 Thread Tim
Mark Shewfelt wrote: > Hello, > > I have implemented a series of classes representing a Building, its > respective Equipment, and then various Components of that equipment > like so (as you'll be able to tell, I'm a newbie): > > class Building: > equipment = {} > def AddEquipment( name,