[3.13] gh-125608: Trigger dictionary watchers when inline values chan… · python/cpython@7b46ae9 · GitHub
Skip to content

Commit 7b46ae9

Browse files
[3.13] gh-125608: Trigger dictionary watchers when inline values change (GH-125611) (GH-125982)
Dictionary watchers on an object's attributes dictionary (`object.__dict__`) were not triggered when the managed dictionary used the object's inline values. (cherry picked from commit 5989eb7) Co-authored-by: Sam Gross <colesbury@gmail.com>
1 parent dba992b commit 7b46ae9

3 files changed

Lines changed: 35 additions & 6 deletions

File tree

Lib/test/test_capi/test_watchers.py

Lines changed: 17 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix a bug where dictionary watchers (e.g., :c:func:`PyDict_Watch`) on an
2+
object's attribute dictionary (:attr:`~object.__dict__`) were not triggered
3+
when the object's attributes were modified.

Objects/dictobject.c

Lines changed: 15 additions & 6 deletions

0 commit comments

Comments
 (0)