Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Apr 1, 2023

Fixes #103176.

I think this is internal and esoteric enough to not require a deprecation cycle.

@Yhg1s
Copy link
Member

Yhg1s commented Apr 10, 2023

FYI, I discussed this with the SC, and considering it's a private API that's relatively new and has very few uses, changing the behaviour is fine. (I also have to say I'm very amused that the documentation didn't even clarify that the value was the 3-tuple, before 😂)

@iritkatriel iritkatriel merged commit 78b763f into python:main Apr 11, 2023
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Apr 18, 2023
@iritkatriel iritkatriel deleted the _current_exceptions branch July 25, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sys._current_exceptions() should return exceptions rather than exc_info tuples
3 participants