Skip to content

[3.12] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) - #122816

Merged
serhiy-storchaka merged 1 commit into
python:3.12from
serhiy-storchaka:backport-e73e7a7-3.12
Aug 23, 2024
Merged

serhiy-storchaka merged 1 commit into
python:3.12from
serhiy-storchaka:backport-e73e7a7-3.12

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 8, 2024 •

Copy link
Copy Markdown
Member

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)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant