• Raymond Hettinger's avatar
    Fix other re-entrancy nits for the lru_cache. · f2c17a92
    Raymond Hettinger yazdı
    Keep references for oldkey and oldvalue so they can't
    trigger a __del__ method to reenter our thread.
    
    Move the cache[key]=link step to the end, after the link
    data is in a consistent state.
    
    Under exotic circumstances, the cache[key]=link step could
    trigger reentrancy (i.e. the key would have to have a hash
    exactly equal to that for another key in the cache and the
    key would need a __eq__ method that makes a reentrant call
    our cached function).
    f2c17a92
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...