[issue41609] pdb's whatis command reports method as function
Irit Katriel
report at bugs.python.org
Fri Aug 21 11:34:02 EDT 2020
Irit Katriel <iritkatriel at yahoo.com> added the comment:
The reason for this that it first checks whether there is a __code__ attribute (which both methods and functions have) and only afterwards checks for __func__.__code__.
I will submit a patch with a test and fix shortly.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41609>
_______________________________________
More information about the Python-bugs-list
mailing list