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 _
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
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@