diff options
author | Carl Meyer <carl@oddbird.net> | 2022-10-21 13:41:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 13:41:51 (GMT) |
commit | 82ccbf69a842db25d8117f1c41b47aa5b4ed96ab (patch) | |
tree | 3a8bdfc3eb837106664433c2e385276fccf64c06 /Doc/whatsnew | |
parent | 8367ca136ed7616cb1f71bd9f1ec98dbcfd35d98 (diff) | |
download | cpython-82ccbf69a842db25d8117f1c41b47aa5b4ed96ab.zip cpython-82ccbf69a842db25d8117f1c41b47aa5b4ed96ab.tar.gz cpython-82ccbf69a842db25d8117f1c41b47aa5b4ed96ab.tar.bz2 |
gh-91051: allow setting a callback hook on PyType_Modified (GH-97875)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 525efc4..3e0b106 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -587,6 +587,12 @@ New Features :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. + (Contributed by Carl Meyer in :gh:`91052`.) + +* Added :c:func:`PyType_AddWatcher` and :c:func:`PyType_Watch` API to register + callbacks to receive notification on changes to a type. + (Contributed by Carl Meyer in :gh:`91051`.) + Porting to Python 3.12 ---------------------- |