@contextmanager
def enable_named_outer_atomic(*names):
 if (len(names) == 0):
  raise ValueError('At least one name must be specified.')
 cache = request_cache.get_cache(OUTER_ATOMIC_CACHE_NAME)
 for name in names:
  cache[name] = True
 (yield)
 for name in names:
  del cache[name]

@ contextmanager def enable_named_outer_atomic ( * names ) : if ( len ( names ) == 0 ) : raise ValueError ( 'At least one name must be specified.' ) cache = request_cache . get_cache ( OUTER_ATOMIC_CACHE_NAME ) for name in names : cache [ name ] = True ( yield ) for name in names : del cache [ name ]
enable outer_atomics with names .