Terry J. Reedy added the comment:
I strongly suspect that ac86e5b2d45b is the cause of the regression reported in
#24485.
def outer():
def inner():
inner1
from inspect import getsource
print(getsource(outer))
omits the body of inner. Ditto if outer is a method. All is okay if outer is
a method and the source of the class is requested.
Could the authors, Allison and Thomas, take a look and try to fix
_line_number_helper to pass the added test (and possibly incorporate it into
findsource)? Since there is a new issue already, this one can be left closed
and further work posted to #24485.
----------
nosy: +terry.reedy
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue21217>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com