Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Return true if the object is a user-defined generator function.

Generator function objects provides same attributes as functions.
See isfunction.__doc__ for attributes listing.

Adapted from Python 2.6.

Args:
  obj: an object to test.
(more...)

        def is_generator_function(obj):
  """Return true if the object is a user-defined generator function.

  Generator function objects provides same attributes as functions.
  See isfunction.__doc__ for attributes listing.

  Adapted from Python 2.6.

  Args:
    obj: an object to test.

  Returns:
    true if the object is generator function.
  """
  CO_GENERATOR = 0x20
  return bool(((inspect.isfunction(obj) or inspect.ismethod(obj)) and
               obj.func_code.co_flags & CO_GENERATOR))
        


src/m/o/MOL-HEAD/app/mapreduce/lib/pipeline/pipeline.py   MOL(Download)
 
    stage.args, stage.kwargs = args_adjusted, kwargs_adjusted
    pipeline_generator = mr_util.is_generator_function(stage.run)
    logging.debug('Running %s(*%r, **%r)',
                  stage._class_path, stage.args, stage.kwargs)
    else:
      pipeline_generator = mr_util.is_generator_function(
          pipeline_func_class.run)
      caller_output = pipeline_func.outputs
 

src/d/a/Darwin-Core-Engine-HEAD/lib/appengine-mapreduce/lib/pipeline/pipeline.py   Darwin-Core-Engine(Download)
 
    stage.args, stage.kwargs = args_adjusted, kwargs_adjusted
    pipeline_generator = mr_util.is_generator_function(stage.run)
    logging.debug('Running %s(*%r, **%r)',
                  stage._class_path, stage.args, stage.kwargs)
    else:
      pipeline_generator = mr_util.is_generator_function(
          pipeline_func_class.run)
      caller_output = pipeline_func.outputs
 

src/g/o/GoogleAppEngineMapReduce-1.9.0.0/mapreduce/lib/pipeline/pipeline.py   GoogleAppEngineMapReduce(Download)
 
    stage.args, stage.kwargs = args_adjusted, kwargs_adjusted
    pipeline_generator = mr_util.is_generator_function(stage.run)
    logging.debug('Running %s(*%s, **%s)', stage._class_path,
                  _short_repr(stage.args), _short_repr(stage.kwargs))
    else:
      pipeline_generator = mr_util.is_generator_function(
          pipeline_func_class.run)
      caller_output = pipeline_func.outputs
 

src/8/0/8-bits-HEAD/appengine-mapreduce/python/src/mapreduce/lib/pipeline/pipeline.py   8-bits(Download)
 
    stage.args, stage.kwargs = args_adjusted, kwargs_adjusted
    pipeline_generator = mr_util.is_generator_function(stage.run)
    logging.debug('Running %s(*%s, **%s)', stage._class_path,
                  _short_repr(stage.args), _short_repr(stage.kwargs))
    else:
      pipeline_generator = mr_util.is_generator_function(
          pipeline_func_class.run)
      caller_output = pipeline_func.outputs
 

src/e/v/EVE-Prosper-HEAD/Scraps/old_dbinit/mapreduce/lib/pipeline/pipeline.py   EVE-Prosper(Download)
 
    stage.args, stage.kwargs = args_adjusted, kwargs_adjusted
    pipeline_generator = mr_util.is_generator_function(stage.run)
    logging.debug('Running %s(*%s, **%s)', stage._class_path,
                  _short_repr(stage.args), _short_repr(stage.kwargs))
    else:
      pipeline_generator = mr_util.is_generator_function(
          pipeline_func_class.run)
      caller_output = pipeline_func.outputs
 

src/r/p/RPI-Directory-HEAD/appengine/mapreduce/lib/pipeline/pipeline.py   RPI-Directory(Download)
 
    stage.args, stage.kwargs = args_adjusted, kwargs_adjusted
    pipeline_generator = mr_util.is_generator_function(stage.run)
    logging.debug('Running %s(*%s, **%s)', stage._class_path,
                  _short_repr(stage.args), _short_repr(stage.kwargs))
    else:
      pipeline_generator = mr_util.is_generator_function(
          pipeline_func_class.run)
      caller_output = pipeline_func.outputs