]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 23 Aug 2024 06:27:03 +0000 (09:27 +0300)
committerGitHub <noreply@github.com>
Fri, 23 Aug 2024 06:27:03 +0000 (09:27 +0300)
commit8fe586d27abda29188cac6def55a04bf15242891
tree08086df75aa0cb794205fbfeff701ad8cf437007
parent6e6855950a1891713369a6cdc84670c38d9388f0
[3.12] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) (GH-122816)

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 e73e7a7abdc3fed252affcb1629df1b3c8fff2ef)
Lib/code.py
Lib/test/test_code_module.py
Misc/NEWS.d/next/Library/2024-07-31-20-43-21.gh-issue-122478.sCU2Le.rst [new file with mode: 0644]