[New-bugs-announce] [issue22487] ABC register doesn't check abstract methods

Ryan McCampbell 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.

messages: 227489
nosy: rmccampbell7
priority: normal
severity: normal
status: open
title: ABC register doesn't check abstract methods
type: enhancement

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list