python 2.2 question...
Martin von Loewis
loewis at informatik.hu-berlin.de
Wed Sep 26 11:29:56 EDT 2001
"Paolo Invernizzi" <paoloinvernizzi at dmsware.com> writes:
> > Notice how the self argument of the metatype's method is the class
> > object.
> >
> > Regards,
> > Martin
>
> Bingo!
>
> ;-((((((
>
> I was thinking the self argument of the metatype was the metatype instance!
As a matter of fact, it is: a metaclass instance is a class (just as a
metametaclass instance would be a metaclass :-)
Regards,
Martin
More information about the Python-list
mailing list