parameters: (key, value, f, indent=0)
docstring: Save a value of any libconfig type
  
      This function serializes takes ``key`` and ``value`` and serializes them
      into ``f``. If ``key`` is ``None``, a list-style output is produced.
      Otherwise, output has ``key = value`` format.
docstring_summary: Save a value of any libconfig type
docstring_tokens: Save a value of any libconfig type
function: def dump_value(key, value, f, indent=0):
      '''Save a value of any libconfig type
  
      This function serializes takes ``key`` and ``value`` and serializes them
      into ``f``. If ``key`` is ``None``, a list-style output is produced.
      Otherwise, output has ``key = value`` format.
      '''
  
      spaces = ' ' * indent
  
      if key is None:
          key_prefix = ''
          key_prefix_nl = ''
      else:
          key_prefix = key + ' = '
          key_prefix_nl = key + ' =\n' + spaces
  
      if isinstance(value, dict):
          f.write(u'{}{}{{\n'.format(spaces, key_prefix_nl))
          dump_dict(value, f, indent + 4)
          f.write(u'{}}}'.format(spaces))
      elif isinstance(value, tuple):
          f.write(u'{}{}(\n'.format(spaces, key_prefix_nl))
          dump_collection(value, f, indent + 4)
          f.write(u'\n{})'.format(spaces))
      elif isinstance(value, list):
          f.write(u'{}{}[\n'.format(spaces, key_prefix_nl))
          dump_collection(value, f, indent + 4)
          f.write(u'\n{}]'.format(spaces))
      elif isstr(value):
          f.write(u'{}{}{}'.format(spaces, key_prefix, dump_string(value)))
      elif isint(value):
          f.write(u'{}{}{}'.format(spaces, key_prefix, dump_int(value)))
      elif isinstance(value, float):
          f.write(u'{}{}{}'.format(spaces, key_prefix, value))
      else:
          raise ConfigSerializeError("Can not serialize object %r of type %s" %
                                     (value, type(value)))
function_tokens: def dump_value ( key , value , f , indent = 0 ) : spaces = ' ' * indent if key is None : key_prefix = '' key_prefix_nl = '' else : key_prefix = key + ' = ' key_prefix_nl = key + ' =\n' + spaces if isinstance ( value , dict ) : f . write ( u'{}{}{{\n' . format ( spaces , key_prefix_nl ) ) dump_dict ( value , f , indent + 4 ) f . write ( u'{}}}' . format ( spaces ) ) elif isinstance ( value , tuple ) : f . write ( u'{}{}(\n' . format ( spaces , key_prefix_nl ) ) dump_collection ( value , f , indent + 4 ) f . write ( u'\n{})' . format ( spaces ) ) elif isinstance ( value , list ) : f . write ( u'{}{}[\n' . format ( spaces , key_prefix_nl ) ) dump_collection ( value , f , indent + 4 ) f . write ( u'\n{}]' . format ( spaces ) ) elif isstr ( value ) : f . write ( u'{}{}{}' . format ( spaces , key_prefix , dump_string ( value ) ) ) elif isint ( value ) : f . write ( u'{}{}{}' . format ( spaces , key_prefix , dump_int ( value ) ) ) elif isinstance ( value , float ) : f . write ( u'{}{}{}' . format ( spaces , key_prefix , value ) ) else : raise ConfigSerializeError ( "Can not serialize object %r of type %s" % ( value , type ( value ) ) )