Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Assignees
iritkatriel
Labels
3.12only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement
@iritkatriel

Description

@iritkatriel

The functionsys._current_exceptions() returns a mapping of thread-id to anexc_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

Metadata

Metadata

Assignees

Labels

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

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp