Logo Search packages:      
Sourcecode: namebench version File versions  Download package

def libnamebench::benchmark::Benchmark::FilteredConfig (   self,
  config 
)

Generate a watered down config listing for our report.

Definition at line 337 of file benchmark.py.

00337                                   :
    """Generate a watered down config listing for our report."""
    keys = [x for x in dir(config) if not x.startswith('_') and x != 'config' ]
    config_items = []
    for key in keys:
      value = getattr(config, key)
      # > values are ConfigParser internals. None values are just noise.
      if isinstance(value, int) or isinstance(value, float) or isinstance(value, str):
        config_items.append((key, value))
    return sorted(config_items)

  def DigestedResults(self):


Generated by  Doxygen 1.6.0   Back to index