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 Dennis Sweeney, Mark.Shannon, barry, brandtbucher, carljm, dino.viehland, gregory.p.smith, gvanrossum, itamaro
Date 2022-03-11.11:14:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646997293.98.0.611618941046.issue46896@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-11 11:14:54Mark.Shannonsetrecipients: + Mark.Shannon, gvanrossum, barry, gregory.p.smith, carljm, dino.viehland, brandtbucher, Dennis Sweeney, itamaro
2022-03-11 11:14:53Mark.Shannonsetmessageid: <1646997293.98.0.611618941046.issue46896@roundup.psfhosted.org>
2022-03-11 11:14:53Mark.Shannonlinkissue46896 messages
2022-03-11 11:14:53Mark.Shannoncreate