Re: [Tutor] putting instance variables into a dict

2006-01-30 Thread Shuying Wang
Hi, That's more or less what I want. Thanks! Now I just need to figure out metaclasses and poke around python's innards. :D --Shuying On 1/30/06, Danny Yoo <[EMAIL PROTECTED]> wrote: > It's an somewhat low-level detail that the attributes of a class instance > can be accessed through a special _

Re: [Tutor] putting instance variables into a dict

2006-01-29 Thread Danny Yoo
On Mon, 30 Jan 2006, Shuying Wang wrote: > So I've got a class X with instance variables a, b, c. Is there any way > of creating a dictionary of these instance variables besides the > no-brainer way of doing dictionary = {'a' : X.a, 'b' : X.b, 'c' : X.c} ? Hi Shuying, It's an somewhat low-leve

[Tutor] putting instance variables into a dict

2006-01-29 Thread Shuying Wang
Hi, So I've got a class X with instance variables a, b, c. Is there any way of creating a dictionary of these instance variables besides the no-brainer way of doing dictionary = {'a' : X.a, 'b' : X.b, 'c' : X.c} ? --Shuying ___ Tutor maillist - Tutor@