2 ms·
They expect to have some form of "lazy caching": conf = {} def get_conn(): return conf.setdefault("db_conn", expensive_creation_of_db_conn())
by avip 9y ago
They expect to have some form of "lazy caching":
conf = {}
def get_conn():
return conf.setdefault("db_conn", expensive_creation_of_db_conn())