GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IDLE - Remove use of deprecated sys.last_xyzs in stackviewer · Issue #102832 · python/cpython

IDLE - Remove use of deprecated sys.last_xyzs in stackviewer #102832

New issue
Copy link
New issue
Copy link
Closed
Closed
IDLE - Remove use of deprecated sys.last_xyzs in stackviewer#102832
Copy link
Assignees
terryjreedy
Labels
topic-IDLE

Description

@terryjreedy
terryjreedy
opened on Mar 19, 2023
Issue body actions

#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.

Linked PRs

  • gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer #103339
  • [3.12] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339) #105526
  • [3.11] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339) #105527
  • gh-102832: IDLE - update stackviewer open #105528
  • [3.12] gh-102832: IDLE - update stackviewer open (GH-105528) #105534

Activity

  1. terryjreedy
    added this to IDLE Issueson Mar 19, 2023
  2. terryjreedy
    converted this from a draft issue on Mar 19, 2023
  3. terryjreedy
    self-assigned this
    on Mar 19, 2023
  4. terryjreedy
    added
    topic-IDLE
    on Mar 19, 2023
  5. iritkatriel
    added 2 commits that reference this issue on Apr 7, 2023

    pythongh-102832: [idle] reduce use of deprecated sys.last_xyzs

    a4b1625

    pythongh-102832: [idle] reduce use of deprecated sys.last_xyzs

    1178a32
  6. terryjreedy
    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
  7. iritkatriel
    added a commit that references this issue on Jun 8, 2023

    gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackvie…

    3ee921d
  8. miss-islington
    added 2 commits that reference this issue on Jun 8, 2023

    pythongh-102832: IDLE - remove use of deprecated sys.last_xyzs for st…

    894fdf3

    pythongh-102832: IDLE - remove use of deprecated sys.last_xyzs for st…

    89d3962
  9. terryjreedy
    added 4 commits that reference this issue on Jun 8, 2023

    pythongh-102832: IDLE - update stackviewer open

    9a16b28

    [3.11] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for s…

    c2df09f

    [3.12] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for s…

    f565fed

    gh-102832: IDLE - update stackviewer open (#105528)

    bb3454c
  10. miss-islington
    added a commit that references this issue on Jun 8, 2023

    pythongh-102832: IDLE - update stackviewer open (pythonGH-105528)

    ba93eff
  11. terryjreedy
    added a commit that references this issue on Jun 8, 2023

    [3.12] gh-102832: IDLE - update stackviewer open (GH-105528) (#105534)

    3eccd95
  12. terryjreedy
    closed this as completedon Jun 8, 2023
  13. github-project-automation
    moved this to Done in IDLE Issueson Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @terryjreedy
    terryjreedy

Labels

topic-IDLE

Projects

  • IDLE Issues
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.