You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE - Remove use of deprecated sys.last_xyzs in stackviewer #102832
#102778 deprecated sys.last_type/value/traceback in favor of sys.last_exc, added in 3.12. We cannot access system system-set sys.last_exc in 3.10 and 3.11, but we can set it from sys.last_value or sys.exec_info()[1] and nearly never set or otherwise access the deprecated values. The except is sys.last_type, sys.last_value, sys.last_traceback = excinfo in run.print_exception, which should remain as long as the REPL does the same (add comment). Any sys.last_exc = sys.last_value statements can be deleted in June 2024. There is a draft issue for this.
The files to be patched are run (where it handles exceptions or stackviewer), pyshell (where it starts stackviewer), stackviewer, and test_stackviewer. This diff has the relevant locations.
changed the title [-]IDLE - Reduce use of deprecated sys.last_xyzs[/-][+]IDLE - Remove use of deprecated sys.last_xyzs in stackviewer[/+]on Apr 19, 2023
Activity
pythongh-102832: [idle] reduce use of deprecated sys.last_xyzs
pythongh-102832: [idle] reduce use of deprecated sys.last_xyzs
[-]IDLE - Reduce use of deprecated sys.last_xyzs[/-][+]IDLE - Remove use of deprecated sys.last_xyzs in stackviewer[/+]gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackvie…
pythongh-102832: IDLE - remove use of deprecated sys.last_xyzs for st…
pythongh-102832: IDLE - remove use of deprecated sys.last_xyzs for st…
pythongh-102832: IDLE - update stackviewer open
[3.11] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for s…
[3.12] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for s…
gh-102832: IDLE - update stackviewer open (#105528)
pythongh-102832: IDLE - update stackviewer open (pythonGH-105528)
[3.12] gh-102832: IDLE - update stackviewer open (GH-105528) (#105534)