[issue46896] add support for watching writes to selected dictionaries

Carl Meyer report at bugs.python.org
Thu Mar 10 18:40:14 EST 2022


Carl Meyer <carl at oddbird.net> added the comment:

I've updated the PR to split `PyDict_EVENT_MODIFIED` into separate `PyDict_EVENT_ADDED`, `PyDict_EVENT_MODIFIED`, and `PyDict_EVENT_DELETED` event types. This allows callbacks only interested in e.g. added keys (case #2) to more easily and cheaply skip uninteresting events.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46896>
_______________________________________


More information about the Python-bugs-list mailing list