|
Orbits
1
|
Public Member Functions | |
| def | __new__ |
| def | register |
| def | __instancecheck__ |
| def | __subclasscheck__ |
Private Member Functions | |
| def | _dump_registry |
Static Private Attributes | |
| int | _abc_invalidation_counter = 0 |
Metaclass for defining Abstract Base Classes (ABCs). Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as 'virtual subclasses' -- these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won't show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).
| def abc.ABCMeta.__instancecheck__ | ( | cls, | |
| instance | |||
| ) |
Override for isinstance(instance, cls).
| def abc.ABCMeta.__new__ | ( | mcls, | |
| name, | |||
| bases, | |||
| namespace | |||
| ) |
| def abc.ABCMeta.__subclasscheck__ | ( | cls, | |
| subclass | |||
| ) |
Override for issubclass(subclass, cls).
|
private |
Debug helper to print the ABC registry.
| def abc.ABCMeta.register | ( | cls, | |
| subclass | |||
| ) |
Register a virtual subclass of an ABC.
|
staticprivate |
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.