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

Appearance settings

gh-146102: Don't clear exception on success in odictobject.c#151347

Open
vstinner wants to merge 1 commit into
python:mainpython/cpython:mainfrom
vstinner:odictvstinner/cpython:odictCopy head branch name to clipboard
Open

gh-146102: Don't clear exception on success in odictobject.c#151347
vstinner wants to merge 1 commit into
python:mainpython/cpython:mainfrom
vstinner:odictvstinner/cpython:odictCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Jun 11, 2026

Copy link
Copy Markdown
Member

Calling PyErr_Clear() on success can mask a pending exception. Replace it with an assertion checking that no exception is set.

Calling PyErr_Clear() on success can mask a pending exception.
Replace it with an assertion checking that no exception is set.
@vstinner

Copy link
Copy Markdown
Member Author

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.