This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, barry, brandtbucher, carljm, dino.viehland, gregory.p.smith, itamaro
Date 2022-03-04.14:41:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646404866.74.0.320368888168.issue46896@roundup.psfhosted.org>
In-reply-to
Content
Why so coarse?

Getting a notification for every change of a global in module, is likely to make use the use of global variables extremely expensive.

```
var = 0

CONST = 1
def foo(...):
    ...
```

I may well want to be notified if `foo` or `CONST` gets modified, but performance could suffer badly if we make a callback every time `var` is changed.

--------------

What happens if a watched dictionary is modified in a callback?

--------------

How do you plan to implement this? Steal a bit from `ma_version_tag` or replace `ma_version_tag`?
If you replace `ma_version_tag` this could actually speed things up a tad.

You'd probably need a PEP to replace PEP 509, but I think this may need a PEP anyway.
History
Date User Action Args
2022-03-04 14:41:06Mark.Shannonsetrecipients: + Mark.Shannon, barry, gregory.p.smith, carljm, dino.viehland, brandtbucher, itamaro
2022-03-04 14:41:06Mark.Shannonsetmessageid: <1646404866.74.0.320368888168.issue46896@roundup.psfhosted.org>
2022-03-04 14:41:06Mark.Shannonlinkissue46896 messages
2022-03-04 14:41:06Mark.Shannoncreate