diff options
author | Carl Meyer <carl@oddbird.net> | 2022-10-08 00:37:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 00:37:46 (GMT) |
commit | e82d977eb0b53b0d69509b7080107108e5cfc6f9 (patch) | |
tree | abe6c2f077f76574d7f1c7c61f34ed49ac3cadbb /Include | |
parent | 8ba9378b168ad330c158a001afca03d6c028d39b (diff) | |
download | cpython-e82d977eb0b53b0d69509b7080107108e5cfc6f9.zip cpython-e82d977eb0b53b0d69509b7080107108e5cfc6f9.tar.gz cpython-e82d977eb0b53b0d69509b7080107108e5cfc6f9.tar.bz2 |
gh-91052: Add PyDict_Unwatch for unwatching a dictionary (#98055)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/dictobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h index f8a74a5..2dff59e 100644 --- a/Include/cpython/dictobject.h +++ b/Include/cpython/dictobject.h @@ -106,3 +106,4 @@ PyAPI_FUNC(int) PyDict_ClearWatcher(int watcher_id); // Mark given dictionary as "watched" (callback will be called if it is modified) PyAPI_FUNC(int) PyDict_Watch(int watcher_id, PyObject* dict); +PyAPI_FUNC(int) PyDict_Unwatch(int watcher_id, PyObject* dict); |