]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141510: Don't accept frozendict in PyDict_Watch() (#145529)
authorVictor Stinner <vstinner@python.org>
Thu, 5 Mar 2026 11:31:29 +0000 (12:31 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2026 11:31:29 +0000 (12:31 +0100)
commit0fe20fc1703c52c0b2597d70df6cad9b3e4056f0
tree6af0594584e1ca85e0bce4cb324d74a7fe61efd2
parent23a4e3ba3c44b423eff635672c56d614f5ea3899
gh-141510: Don't accept frozendict in PyDict_Watch() (#145529)

Don't accept frozendict in PyDict_Watch() and PyDict_Unwatch().
A frozendict cannot be modified, so it's not useful to watch for
modifications.
Lib/test/test_capi/test_watchers.py
Objects/dictobject.c