Does 'super' exist?
Andrew Dalke
dalke at dalkescientific.com
Sun Dec 9 00:21:33 EST 2001
Bruce Eckel:
>It's a little hard to tell, does 'super' exist in 2.2? If so, where
>might I find the syntax? Thanks.
Python has multiple base classes so there isn't a 'super'.
Inside an insteance method, to get the parents of a given class,
as a tuple, in the order of occurance used in the class
definition, use
self.__class__.__bases__
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list