gh-146075: Prevent crash in `functools.partial()` from malformed `str` subclass by brijkapadia · Pull Request #146078 · python/cpython
In `partial_vectorcall`, an error returned by `PyDict_Contains` was considered to be a truthy value. Now, the error is handled appropriately.
StanFromIreland
changed the title
gh-146075: Prevent crash from malformed
gh-146075: Prevent crash in str subclassfunctools.partial() from malformed str subclass
ljfp pushed a commit to ljfp/cpython that referenced this pull request
…d `str` subclass (pythonGH-146078) In `partial_vectorcall`, an error returned by `PyDict_Contains` was considered to be a truthy value. Now, the error is handled appropriately.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters