Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
REPL shows source code from _pyrepl.__main__.py #129098
Copy link
Copy link
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
When using
compilebuilt-in function and providing non-existing filename, REPL shows source lines from_pyrepl.__main__.pyif exception occurs. Reproducer:Results in:
traceback with following line:
# Important: don't add things to this module, as they will end up in the REPL's. This is first line fromLib/_pyrepl/__main__.py.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
_pyrepl.__main__.pyinside REPL #129099_pyrepl/__main__.pywhen reporting tracebacks #130721_pyrepl/__main__.pywhen reporting tracebacks (GH-130721) #132755