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 — sys._current_exceptions() should return exceptions rather than exc_info tuples · Issue #103176 · python/cpython

sys._current_exceptions() should return exceptions rather than exc_info tuples #103176

New issue
Copy link
New issue
Copy link
Closed
#103177
Closed
sys._current_exceptions() should return exceptions rather than exc_info tuples#103176
#103177
Copy link
Assignees
iritkatriel
Labels
3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@iritkatriel
iritkatriel
opened on Apr 1, 2023
Issue body actions

The function sys._current_exceptions() returns a mapping of thread-id to an exc_info tuple representing that thread's handled exception. As part of the larger effort of moving away from exc_info to simple exception instances, we should change this mapping to have just the exception instance as value.

While this is a breaking change, I think we can do this without a deprecation period because this function is named with a leading _, and it is documented as "for internal and specialized purposes only".

Linked PRs

  • gh-103176: sys._current_exceptions() returns mapping to exception instances instead of exc_info tuples #103177

Activity

  1. iritkatriel
    added
    type-featureA feature request or enhancementA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Apr 1, 2023
  2. iritkatriel
    added a commit that references this issue on Apr 1, 2023

    pythongh-103176: sys._current_exceptions() returns mapping to excepti…

    a0c87eb
  3. iritkatriel
    added
    release-blocker
    3.12only security fixesonly security fixes
    on Apr 3, 2023
  4. ezio-melotti
    added this to Release and Deferred blockers 🚫on Apr 3, 2023
  5. github-project-automation
    moved this to Todo in Release and Deferred blockers 🚫on Apr 3, 2023
  6. iritkatriel commented on Apr 3, 2023

    @iritkatriel
    iritkatriel
    on Apr 3, 2023
    MemberAuthor
    More actions

    Marking as blocker so we won't forget to make a decision about whether this should be done via a deprecation cycle (it's not really a blocker, the label can be removed).

  7. iritkatriel
    self-assigned this
    on Apr 3, 2023
  8. iritkatriel
    closed this as completedin #103177on Apr 11, 2023
  9. github-project-automation
    moved this from Todo to Done in Release and Deferred blockers 🚫on Apr 11, 2023
  10. iritkatriel
    added a commit that references this issue on Apr 11, 2023

    gh-103176: sys._current_exceptions() returns mapping to exception ins…

    78b763f
  11. iritkatriel
    removed
    release-blocker
    on Apr 11, 2023
  12. warsaw
    added a commit that references this issue on Apr 11, 2023

    pythongh-103176: sys._current_exceptions() returns mapping to excepti…

    305294c
  13. aisk
    added a commit that references this issue on Apr 18, 2023

    pythongh-103176: sys._current_exceptions() returns mapping to excepti…

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

Metadata

Metadata

Assignees

  • @iritkatriel
    iritkatriel

Labels

3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Projects

  • Release and Deferred blockers 🚫
    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.