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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22487>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to