class documentation
class Super(node_classes.NodeNG): (source)
Constructor: Super(mro_pointer, mro_type, self_class, scope)
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 |
Undocumented |
| Method | getattr |
Undocumented |
| Method | igetattr |
Retrieve the inferred values of the given attribute name. |
| Method | pytype |
Undocumented |
| Method | qname |
Undocumented |
| Method | super |
Get the MRO which will be used to lookup attributes in this super. |
| Class Variable | special |
Undocumented |
| Instance Variable | mro |
Undocumented |
| Instance Variable | type |
Undocumented |
| Property | name |
Get the name of the MRO pointer. |
| Method | _infer |
Undocumented |
| Instance Variable | _class |
Undocumented |
| Instance Variable | _scope |
Undocumented |
| Instance Variable | _self |
Undocumented |
| Property | _proxied |
Undocumented |