[issue21740] doctest doesn't allow duck-typing callables
Antoine Pitrou
report at bugs.python.org
Mon Jun 30 01:31:08 CEST 2014
Antoine Pitrou added the comment:
>> I'm not sure, because it would also select classes.
>
> Is there any reason to preclude classes? They could reasonably have docstrings that contain doctests.
I don't know. I just didn't want to change doctest behaviour too much,
but if people more knowledgeable than me about it feel it's ok, then all
the better.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21740>
_______________________________________
More information about the Python-bugs-list
mailing list