Message339312
Quick question, would the existing sys.reload() logic suffice?
-- mymodule.py --
cache = {} # On reload, this would clear the cache
def f(x):
if x in cache:
return cache[x]
y = x**2
cache[x] = y
return y |
|
Date |
User |
Action |
Args |
2019-04-02 01:05:33 | rhettinger | set | recipients:
+ rhettinger, brett.cannon, ezio.melotti, michael.foord, serhiy.storchaka, Anders.Hovmöller, malin |
2019-04-02 01:05:33 | rhettinger | set | messageid: <1554167133.7.0.44356978194.issue36485@roundup.psfhosted.org> |
2019-04-02 01:05:33 | rhettinger | link | issue36485 messages |
2019-04-02 01:05:33 | rhettinger | create | |
|