def all(items): return reduce(operator.__and__, items) # --- test if interpreter supports yield keyword ---