class Super(node_classes.NodeNG): (source)
Proxy class over a super call.
This class offers almost the same behaviour as Python's super, which is MRO lookups for retrieving attributes from the parents.
The mro_pointer is the place in the MRO from where we should start looking, not counting it. mro_type is the object which provides the MRO, it can be both a type or an instance. self_class is the class where the super call is, while scope is the function where the super call is.
Method | __init__ |
Undocumented |
Method | display_type |
Undocumented |
Method | getattr |
Undocumented |
Method | igetattr |
Retrieve the inferred values of the given attribute name. |
Method | pytype |
Undocumented |
Method | qname |
Undocumented |
Method | super_mro |
Get the MRO which will be used to lookup attributes in this super. |
Class Variable | special_attributes |
Undocumented |
Instance Variable | mro_pointer |
Undocumented |
Instance Variable | type |
Undocumented |
Property | name |
Get the name of the MRO pointer. |
Method | _infer |
Undocumented |
Instance Variable | _class_based |
Undocumented |
Instance Variable | _scope |
Undocumented |
Instance Variable | _self_class |
Undocumented |
Property | _proxied |
Undocumented |