]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141510: Check argument in PyDict_Contains() (#145083)
authorVictor Stinner <vstinner@python.org>
Sat, 21 Feb 2026 17:36:02 +0000 (18:36 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 17:36:02 +0000 (18:36 +0100)
commitc9380aebbe35973528392ff85f8914eb4c626d5b
tree23c7ced32395108bbaeb0a9bc0f7573e4fcb23ff
parentf1f61bf87207c27da06ff73611b76933e456ef18
gh-141510: Check argument in PyDict_Contains() (#145083)

PyDict_Contains() and PyDict_ContainsString() now fail with
SystemError if the first argument is not a dict, frozendict, dict
subclass or frozendict subclass.
Lib/test/test_capi/test_dict.py
Objects/dictobject.c