From e82d977eb0b53b0d69509b7080107108e5cfc6f9 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Fri, 7 Oct 2022 17:37:46 -0700 Subject: gh-91052: Add PyDict_Unwatch for unwatching a dictionary (#98055) --- Include/cpython/dictobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/cpython') 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); -- cgit v1.2.1