[issue46896] add support for watching writes to selected dictionaries

Gregory P. Smith report at bugs.python.org
Wed Mar 2 01:53:40 EST 2022


Gregory P. Smith <greg at krypto.org> added the comment:

At first quick glance, this makes sense and the API looks reasonable.

Question: what happens on interpreter shutdown?

Shutdown obviously finalized and clears out most all dicts.  I guess the C callback simply gets called for each of these?  That makes sense.  Just wondering if there are any ramifications of that.  The callback is in C so it shouldn't have issues with this.

A pyperformance suite run on an interpreter modified to support this but having no callbacks registered would be useful.  (basically judging if there is measurable overhead added by the watched bit check - I doubt it'll be noticeable in most code)

----------
nosy: +gregory.p.smith

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


More information about the Python-bugs-list mailing list