[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

Leonard Truong report at bugs.python.org
Thu Aug 22 18:49:08 EDT 2019


Leonard Truong <leonard at truong.io> added the comment:

Turns out this is a documented issue in the source code: https://github.com/python/cpython/blob/3.7/Lib/inspect.py#L794-L796

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37922>
_______________________________________


More information about the Python-bugs-list mailing list