summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2022-10-08 00:37:46 (GMT)
committerGitHub <noreply@github.com>2022-10-08 00:37:46 (GMT)
commite82d977eb0b53b0d69509b7080107108e5cfc6f9 (patch)
treeabe6c2f077f76574d7f1c7c61f34ed49ac3cadbb /Doc/whatsnew
parent8ba9378b168ad330c158a001afca03d6c028d39b (diff)
downloadcpython-e82d977eb0b53b0d69509b7080107108e5cfc6f9.zip
cpython-e82d977eb0b53b0d69509b7080107108e5cfc6f9.tar.gz
cpython-e82d977eb0b53b0d69509b7080107108e5cfc6f9.tar.bz2
gh-91052: Add PyDict_Unwatch for unwatching a dictionary (#98055)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 405de11..f873974 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -546,6 +546,11 @@ New Features
which sets the vectorcall field of a given :c:type:`PyFunctionObject`.
(Contributed by Andrew Frost in :gh:`92257`.)
+* The C API now permits registering callbacks via :c:func:`PyDict_AddWatcher`,
+ :c:func:`PyDict_AddWatch` and related APIs to be called whenever a dictionary
+ is modified. This is intended for use by optimizing interpreters, JIT
+ compilers, or debuggers.
+
Porting to Python 3.12
----------------------