Skip to content
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

gh-105071: add PyUnstable_Exc_PrepReraiseStar to expose except* implementation in the unstable API #105072

Merged
merged 4 commits into from
May 30, 2023

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented May 29, 2023

I did not rename the internal function, but rather added an API function that calls it. This is because the internal function can make more assumptions about the input than an API function (so the API function raises exceptions on things that the internal function just asserts).

Fixes #105071.

CC @da-woods .


📚 Documentation preview 📚: https://cpython-previews--105072.org.readthedocs.build/

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc formatting nits. Otherwise: lgtm, as far as I can see.

Doc/c-api/exceptions.rst Outdated Show resolved Hide resolved
Doc/c-api/exceptions.rst Outdated Show resolved Hide resolved
Doc/c-api/exceptions.rst Outdated Show resolved Hide resolved
Objects/exceptions.c Outdated Show resolved Hide resolved
Objects/exceptions.c Outdated Show resolved Hide resolved
iritkatriel and others added 2 commits May 30, 2023 11:12
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@iritkatriel iritkatriel added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 30, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit 784b102 🤖

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 30, 2023
@iritkatriel iritkatriel added needs backport to 3.12 bug and security fixes topic-C-API interpreter-core (Objects, Python, Grammar, and Parser dirs) and removed topic-C-API labels May 30, 2023
@iritkatriel iritkatriel merged commit b7aadb4 into python:main May 30, 2023
@miss-islington
Copy link
Contributor

Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @iritkatriel, I had trouble checking out the 3.12 backport branch.
Please retry by removing and re-adding the "needs backport to 3.12" label.
Alternatively, you can backport using cherry_picker on the command line.
cherry_picker b7aadb4583b040ddc8564896b91f4e5e571c82d6 3.12

iritkatriel added a commit to iritkatriel/cpython that referenced this pull request May 30, 2023
…except* implementation in the unstable API (pythonGH-105072)

(cherry picked from commit b7aadb4)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
@bedevere-bot
Copy link

GH-105095 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 bug and security fixes label May 30, 2023
@bedevere-bot
Copy link

GH-105095 is a backport of this pull request to the 3.12 branch.

iritkatriel added a commit that referenced this pull request May 30, 2023
…* implementation in the unstable API (GH-105072) (#105095)

(cherry picked from commit b7aadb4)
@iritkatriel iritkatriel deleted the PyUnstable_Exc_PrepReraiseStar 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
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add PyUnstable_Exc_PrepReraiseStar
5 participants