summaryrefslogtreecommitdiff
path: root/Include/cpython
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2022-10-07 17:37:46 -0700
committerGitHub <noreply@github.com>2022-10-07 17:37:46 -0700
commite82d977eb0b53b0d69509b7080107108e5cfc6f9 (patch)
treeabe6c2f077f76574d7f1c7c61f34ed49ac3cadbb /Include/cpython
parent8ba9378b168ad330c158a001afca03d6c028d39b (diff)
downloadcpython-git-e82d977eb0b53b0d69509b7080107108e5cfc6f9.tar.gz
gh-91052: Add PyDict_Unwatch for unwatching a dictionary (#98055)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/dictobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h
index f8a74a597b..2dff59ef0b 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);