module documentation
Hierarchy of abstract base classes, from _collections_abc.py.
Function |
|
Get a reverse Python type hierarchy mapping. |
Function |
|
Get a Python type hierarchy mapping. |
Constant | SUPERCLASSES |
Undocumented |
Get a reverse Python type hierarchy mapping. This generates a dictionary that can be used to look up the (known) subclasses of a type in the abstract base class hierarchy. Returns: A dictionary mapping a type, as string, to a list of direct subclasses (also as strings). E.g. "Sized" -> ["Set", "Mapping", "MappingView", "Sequence"].