Mark Shannon <[email protected]> added the comment:
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.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46896>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com