Skip to content

gh-146075: Prevent crash in functools.partial() from malformed str subclass#146078

Open
bkap123 wants to merge 3 commits intopython:mainfrom
bkap123:partial-contains
Open

gh-146075: Prevent crash in functools.partial() from malformed str subclass#146078
bkap123 wants to merge 3 commits intopython:mainfrom
bkap123:partial-contains

Conversation

@bkap123
Copy link
Contributor

@bkap123 bkap123 commented Mar 17, 2026

In partial_vectorcall, an error returned by PyDict_Contains was considered to be a truthy value. Now, the error is handled appropriately.

In `partial_vectorcall`, an error returned by `PyDict_Contains` was
considered to be a truthy value. Now, the error is handled
appropriately.
@StanFromIreland StanFromIreland changed the title gh-146075: Prevent crash from malformed str subclass gh-146075: Prevent crash in functools.partial() from malformed str subclass Mar 17, 2026
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