[issue5135] Expose simplegeneric function in functools module

Éric Araujo report at bugs.python.org
Fri Mar 25 23:45:18 CET 2011


Éric Araujo <merwok at netwok.org> added the comment:

> The register() method of an ABC only fakes out isinstance checks, it
> doesn't actually make the abstract base class a base class of the class.
> It doesn't make any sense for a class to say it is an instance of an
> ABC, but not have that ABC in [its] MRO.

I disagree.  If someone writes a class and registers them with an ABC, it is their duty to make sure that the class actually complies.  Virtual subclasses are provided for use by consenting adults IMO.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list