[issue10868] ABCMeta.register() should work as a decorator
Éric Araujo
report at bugs.python.org
Thu Feb 24 22:20:18 CET 2011
Éric Araujo <merwok at netwok.org> added the comment:
Someone may want to register with an ABC but not inherit methods or add a class to the mro. It’s always been allowed by the register method; the new decorator feature is just a very minor nicety on top of that.
Edoardo, was your request motivated by a real use case where you didn’t want to inherit from the ABC?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10868>
_______________________________________
More information about the Python-bugs-list
mailing list