[issue17584] collections.Iterator __subclasshook__ does not check if next() is callable

Byron Ruth report at bugs.python.org
Sun Mar 31 21:42:26 CEST 2013


Byron Ruth added the comment:

Thank you for the education. I didn't think about duck-typing extending to the level of whether or not something is callable.. then again the property _could_ return a callable and it would be transparent to the caller.

----------

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


More information about the Python-bugs-list mailing list