Irit Katriel <[email protected]> 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 <[email protected]> <https://bugs.python.org/issue41609> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
