Message415261
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. |
|
Date |
User |
Action |
Args |
2022-03-15 16:16:21 | Mark.Shannon | set | recipients:
+ Mark.Shannon, gvanrossum, barry, gregory.p.smith, carljm, dino.viehland, brandtbucher, Dennis Sweeney, itamaro |
2022-03-15 16:16:21 | Mark.Shannon | set | messageid: <1647360981.62.0.79319847654.issue46896@roundup.psfhosted.org> |
2022-03-15 16:16:21 | Mark.Shannon | link | issue46896 messages |
2022-03-15 16:16:21 | Mark.Shannon | create | |
|