[New-bugs-announce] [issue22487] ABC register doesn't check abstract methods
report at bugs.python.org
Wed Sep 24 23:37:14 CEST 2014
New submission from Ryan McCampbell:
Is there a reason register() doesn't check for abstract methods, like subclassing does? Would it fail for some builtin classes? It seems that this would be a better guarantee that, say, something really is iterable when you check isinstance(Collections.Iterable, o), since someone could have called Collections.Iterable.register(o.__class__) without adding an __iter__ method to their class.
title: ABC register doesn't check abstract methods
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce