inheriting from C types
Renzo Tomaselli
renzo.tomaselli at tecnotp.it
Wed Jul 17 03:43:54 EDT 2002
martin at v.loewis.de (Martin v. Loewis) wrote in message news:<m3ofd7msnw.fsf at mira.informatik.hu-berlin.de>...
> renzo.tomaselli at tecnotp.it (Renzo Tomaselli) writes:
>
> > import ype
> > class k(ype.ype):
> > pass
>
> What is k.__mro__?
>
> Regards,
> Martin
I see it contains base classes, but only their dictionary is used in
_PyType_Lookup.
I did not provide my C type with a tp_dict slot, since I thought its
attributes are accessed through tp_getattr.
Should I ? Meaning and management of tp_dict is somewhat obscure to
me.
Renzo
More information about the Python-list
mailing list