Message414531
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. |
|
Date |
User |
Action |
Args |
2022-03-04 14:41:06 | Mark.Shannon | set | recipients:
+ Mark.Shannon, barry, gregory.p.smith, carljm, dino.viehland, brandtbucher, itamaro |
2022-03-04 14:41:06 | Mark.Shannon | set | messageid: <1646404866.74.0.320368888168.issue46896@roundup.psfhosted.org> |
2022-03-04 14:41:06 | Mark.Shannon | link | issue46896 messages |
2022-03-04 14:41:06 | Mark.Shannon | create | |
|