[issue21740] doctest doesn't allow duck-typing callables
Antoine Pitrou
report at bugs.python.org
Fri Jun 20 00:13:34 CEST 2014
Antoine Pitrou added the comment:
> Ezio Melotti added the comment:
>
> Would using callable() instead of inspect.isfunction() be ok?
I'm not sure, because it would also select classes. I guess we need
something a bit smarter.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21740>
_______________________________________
More information about the Python-bugs-list
mailing list