inheritedAttribute(class,
name)
Get an attribute that would be inherited if the given (extension)
class did not define it. This method is used when overriding
inherited methods. It provides 2 advantages over accessing
attributes directly through a superclass:
- The superclass need not be known,
- The superclass may be a Python class. Without this method, it would
be possible to override methods inherited from python classes because
unbound methods gotten from Python classes cannot be called with
extension class instances.
-
|