PyDocs

Nav

Python Runtime Services

ABCMeta.register

abc

method of ABCMeta (source)
  • ABCMeta.register(subclass)
Register a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.
Changed in 3.3, 3.4
  • 3.3: Returns the registered subclass, to allow usage as a class decorator.
  • 3.4: To detect calls to register(), you can use the get_cache_token() function.
0 Examples
No examples for abc/ABCMeta.register.
See Also
No see-alsos for abc/ABCMeta.register
0 Notes
No notes for ABCMeta.register