]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122478: Remove internal frames from tracebacks in REPL (GH-122528)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 7 Aug 2024 20:20:57 +0000 (23:20 +0300)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 20:20:57 +0000 (23:20 +0300)
commite73e7a7abdc3fed252affcb1629df1b3c8fff2ef
tree40ddcdddf5afa080c8027af381db07f3ffab2bb9
parent42d9bec98fd846e16a3f4fa9a07e2024aae533ce
gh-122478: Remove internal frames from tracebacks in REPL (GH-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.
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]