Mark Shannon <[email protected]> added the comment:
You might not like global variables, they may not show up much in benchmarks,
but people do use them. I suspect a lot of jupyter notebooks have quite a few
global variables.
There should not be much of a slowdown for this code when watching `CONST`:
CONST = ... # watched
var = 0
for _ in range(LARGE_NUMBER):
var += 1
CONST = ... # trigger event.
----------
_______________________________________
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