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 __dict__ object:
> ######
<snip>
> >>> s = SomeClass(5)
> >>> s.__dict__
> {'n': 5}
> ######
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to