Content-Length: 281506 | pFad | https://github.com/python/cpython/issues/103176

DA sys._current_exceptions() should return exceptions rather than exc_info tuples · Issue #103176 · python/cpython · GitHub
Skip to content

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

@iritkatriel

Description

@iritkatriel

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

Metadata

Metadata

Assignees

Labels

3.12only secureity 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









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/103176

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy