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-15.16:16:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647360981.62.0.79319847654.issue46896@roundup.psfhosted.org>
In-reply-to
Content
Let me give you an example.

#module eggs

eggs_var = 0 # a variable, maybe a counter or similar
EGGS_CONST # a constant

#module spam

import eggs

spam_var # Another variable

def foo():
    use(eggs.EGGS_CONST)

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

We will want to treat `eggs.EGGS_CONST` as a constant.
To do that we need to be notified if `spam.eggs` or `eggs.EGGS_CONST` changes, but we do not want be notified whenever `spam.spam_var` or `eggs.eggs_var` changes.

This might not be necessary for us right now, but we will want to implement optimizations over larger regions than a single bytecode in 3.12.
History
Date User Action Args
2022-03-15 16:16:21Mark.Shannonsetrecipients: + Mark.Shannon, gvanrossum, barry, gregory.p.smith, carljm, dino.viehland, brandtbucher, Dennis Sweeney, itamaro
2022-03-15 16:16:21Mark.Shannonsetmessageid: <1647360981.62.0.79319847654.issue46896@roundup.psfhosted.org>
2022-03-15 16:16:21Mark.Shannonlinkissue46896 messages
2022-03-15 16:16:21Mark.Shannoncreate