R. David Murray added the comment:

I in case it wasn't clear, I closed this not because of my "case closed" 
statement, but because as Eric pointed out we *do* have consistency here: 
things which check *capabilities* (as opposed to actually *using* the special 
methods), like callable and Iterable, only look for the existence of the 
method, consistently.  The fact that you can then get an AttributeError later 
when actually using the method is unfortunate, but there really isn't anything 
sensible to be done about it, due to backward compatibility concerns.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23990>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to