The Don Beaudry/Jim Fulton hack
Neel Krishnaswami
neelk at brick.cswv.com
Thu Dec 30 09:27:28 EST 1999
Dave Abrahams <abrahams at mediaone.net> wrote:
>
> But as you can see, you can't set the __class__ attribute of an instance to
> anything other than a class. So what have I missed? How am I supposed to get
> this to work "without writing C code"?
Read GvR's essay, "Metaclass Programming in Python 1.5" at
http://www.python.org/doc/essays/metaclasses/
I have to admit that you are more hardcore than me -- I never bothered
looking at the C source once I had found this essay. :)
Neel
More information about the Python-list
mailing list