[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

Thomas Ballinger report at bugs.python.org
Mon Apr 14 19:36:00 CEST 2014


Thomas Ballinger added the comment:

"The code object's co_lnotab is how inspect should be getting the sourcelines of the code, instead of looking for the first codeblock."

I'm looking at this now, thanks to Yhg1s for the above.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21217>
_______________________________________


More information about the Python-bugs-list mailing list