Re: [Tutor] define vars by iteration

2005-10-24 Thread Luke Jordan
Thanks for this insight into classes. It often takes me a few days to absorb and respond because my job limits the time I can give to programming. But thanks again for taking the time to respond in a meaningful way.   I guess I could say that you changed my world when it comes to programming (sorr

Re: [Tutor] define vars by iteration

2005-10-20 Thread Danny Yoo
> Also, I have done what I'm trying to do successfully by populating a > dictionary with class instances named after self.name , > which, after the function runs, I can access this way > >>> classDictionary["Yard"] > > the thing is I would like to be able to get at Yard's at

Re: [Tutor] define vars by iteration

2005-10-20 Thread Luke Jordan
Danny,   It does help. I'm still stuck on part of it though, maybe a little background will help.   To learn more about classes I decided to make a class Map, with many instances that have directions pointing to other Map instances. Each Map has different objects you can find on it, but is still a

Re: [Tutor] define vars by iteration

2005-10-19 Thread Danny Yoo
On Wed, 19 Oct 2005, Luke Jordan wrote: > I've got a bunch of pickled class instances with > self.nameattributes, and I would like to assign the > instances themselves to variables > named whatever is stored in self.name using a function. > "Can't assign to

[Tutor] define vars by iteration

2005-10-19 Thread Luke Jordan
I've got a bunch of pickled class instances with self.name attributes, and I would like to assign the instances themselves to variables named whatever is stored in self.name using a function. "Can't assign to literal", right? Is there a way to do this?   Thanks,   Luke