inspect.getsource returns irrelevant text when used in repl on a class defined in place #126019
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Run interactive cpython 3.13 with following input.
Instead of class code we get a piece of repl internals.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
The text was updated successfully, but these errors were encountered: