[issue10868] ABCMeta.register() should work as a decorator

Daniel Urban report at bugs.python.org
Sat Feb 26 13:32:16 CET 2011


Daniel Urban <urban.dani+py at gmail.com> added the comment:

> In what use-cases would you want to call MyABC.register() when defining
> a class instead of inheriting from MyABC?

For example if you don't want to inherit a __dict__ for a tree-like data structure (see also issue11333).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10868>
_______________________________________


More information about the Python-bugs-list mailing list