You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
inspect.getsource does not work for a class-defined code object #116987
In the following MRE, code.co_firstlineno correctly returns 4, the first line number of the class definition, but getsource(code) returns the content of the entire file:
Activity
gh-116987: Support class code objects in inspect.findsource() (GH-117025
pythongh-116987: Support class code objects in inspect.findsource() (p…
Squashed commit of the following:
Squashed commit of the following:
pythongh-116987: Support class code objects in inspect.findsource() (p…