[3.13] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528)#123227
[3.13] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528)#123227pablogsal merged 1 commit intopython:3.13from
Conversation
pythonGH-122528) Frames of methods in code and codeop modules was show with non-default sys.excepthook. Save correct tracebacks in sys.last_traceback and update __traceback__ attribute of sys.last_value and sys.last_exc. (cherry picked from commit e73e7a7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3ae8b72 to
37be1c9
Compare
|
What is the difference with #122817? |
|
You can use There are some differences between #122817 and this PR, but I do not understand them (there is nothing similar in the main and 3.12 branches). This is why I asked. |
thank you!
Yes, it took me ages yesterday to find out what happened. Basically the pyrepl PRs were (manually?) backported out of order, and this one was one of the skipped ones. this led to conflicts in the automatic backports, and it's the reason why this PR is different than #122817. but I think we're almost back to a consistent state. |
Attempt to redo the missing backport of gh-122528, superseding #122817 (which is conflicting now). /cc @pablogsal
Frames of methods in code and codeop modules was show with non-default sys.excepthook.
Save correct tracebacks in sys.last_traceback and update traceback attribute of sys.last_value and sys.last_exc.
(cherry picked from commit e73e7a7)