Author rhettinger
Recipients Anders.Hovmöller, brett.cannon, ezio.melotti, malin, michael.foord, rhettinger, serhiy.storchaka
Date 2019-04-02.01:05:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Quick question, would the existing sys.reload() logic suffice?

-- --

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:33rhettingersetrecipients: + rhettinger, brett.cannon, ezio.melotti, michael.foord, serhiy.storchaka, Anders.Hovmöller, malin
2019-04-02 01:05:33rhettingersetmessageid: <>
2019-04-02 01:05:33rhettingerlinkissue36485 messages
2019-04-02 01:05:33rhettingercreate