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 — Add sys.last_exc, deprecate sys.last_type, sys.last_value and sys.last_traceback · Issue #102778 · python/cpython

Add sys.last_exc, deprecate sys.last_type, sys.last_value and sys.last_traceback #102778

New issue
Copy link
New issue
Copy link
Closed
#103314
Closed
Add sys.last_exc, deprecate sys.last_type, sys.last_value and sys.last_traceback#102778
#103314
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@iritkatriel
iritkatriel
opened on Mar 17, 2023
Issue body actions

Linked PRs

  • gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,sys.last_traceback #102779
  • gh-102778: revert changes to idlelib #102825
  • gh-102778: IDLE - make sys.last_exc available in Shell after traceback #103314
  • gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc #105190
  • [3.12] gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc (GH-105190) #105246

Activity

  1. iritkatriel
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Mar 17, 2023
  2. iritkatriel
    added 2 commits that reference this issue on Mar 17, 2023

    pythongh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_…

    75e1496

    gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,…

    e1e9bab
  3. iritkatriel
    closed this as completedon Mar 18, 2023
  4. iritkatriel
    added a commit that references this issue on Mar 19, 2023

    pythongh-102778: revert changes to idlelib

    5327dc6
  5. terryjreedy
    added a commit that references this issue on Mar 19, 2023

    gh-102778: revert changes to idlelib (#102825)

    4d1f033
  6. terryjreedy commented on Mar 19, 2023

    @terryjreedy
    terryjreedy
    on Mar 19, 2023
    Member
    More actions

    I appreciate the effort to remove the traces of string exceptions. Is there a plan to actually stop adding the old last_xxx vars to sys and accessing them in other non-IDLE stdlib modules? When they are added to sys by python itself (after unhandled exceptions), could they be added as properties with a getter that would emit a deprecation warning, or are properties for python-coded classes only?

  7. iritkatriel commented on Mar 19, 2023

    @iritkatriel
    iritkatriel
    on Mar 19, 2023
    MemberAuthor
    More actions

    Yes, I would like to eventually remove the old fields.

    Since they are module level variables, I don't think they can be properties. But maybe there's something we can do through intercepting getattr on the module?

  8. Fidget-Spinner
    added 2 commits that reference this issue on Mar 27, 2023

    pythongh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_…

    0d85488

    pythongh-102778: revert changes to idlelib (python#102825)

    4746094
  9. iritkatriel
    reopened this on Apr 6, 2023
  10. iritkatriel
    added a commit that references this issue on Apr 6, 2023

    pythongh-102778: add last_exc in idlelib, to replace sys.last_type/va…

    6b74907
  11. iritkatriel commented on Apr 6, 2023

    @iritkatriel
    iritkatriel
    on Apr 6, 2023
    MemberAuthor
    More actions

    Reopening to finish idlelib.

  12. warsaw
    added 2 commits that reference this issue on Apr 11, 2023

    pythongh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_…

    bb6764d

    pythongh-102778: revert changes to idlelib (python#102825)

    baedad9
  13. terryjreedy
    closed this as completedin #103314on Apr 19, 2023
  14. terryjreedy
    added a commit that references this issue on Apr 19, 2023

    gh-102778: IDLE - make sys.last_exc available in Shell after traceback (

    d1e4917
  15. terryjreedy commented on Apr 19, 2023

    @terryjreedy
    terryjreedy
    on Apr 19, 2023
    Member
    More actions

    Followup issue for idlelib is #102832 .

  16. carljm
    added a commit that references this issue on Apr 20, 2023

    Merge branch 'main' into superopt

    5c0a21c
  17. iritkatriel
    added 3 commits that reference this issue on Jun 1, 2023

    pythongh-102778: update documentation of PyErr_PrintEx regarding sys.…

    c8f6fb6

    pythongh-102778: update documentation of PyErr_PrintEx regarding sys.…

    2157f04

    gh-102778: update documentation of PyErr_PrintEx and traceback.print_…

    0dafc78
  18. miss-islington
    added a commit that references this issue on Jun 2, 2023

    pythongh-102778: update documentation of PyErr_PrintEx and traceback.…

    de2b136
  19. iritkatriel
    added a commit that references this issue on Jun 2, 2023

    [3.12] gh-102778: update documentation of PyErr_PrintEx and traceback…

    00fe618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      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.