def _is_generator(obj):
  return isinstance(obj, types.GeneratorType)
Helper to test for a generator object.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/ndb/tasklets.py/_is_generator