parameters: (f, filename=None, includedir='')
return_statement: return Parser(tokenstream).parse()
docstring: Load the contents of ``f`` (a file-like object) to a Python object
  
      The returned object is a subclass of ``dict`` that exposes string keys as
      attributes as well.
  
      Example:
  
          >>> with open('test/example.cfg') as f:
          ...     config = libconf.load(f)
          >>> config['window']['title']
          'libconfig example'
          >>> config.window.title
          'libconfig example'
docstring_summary: Load the contents of ``f`` (a file-like object) to a Python object
docstring_tokens: Load the contents of f ( a file - like object ) to a Python object
function: def load(f, filename=None, includedir=''):
      '''Load the contents of ``f`` (a file-like object) to a Python object
  
      The returned object is a subclass of ``dict`` that exposes string keys as
      attributes as well.
  
      Example:
  
          >>> with open('test/example.cfg') as f:
          ...     config = libconf.load(f)
          >>> config['window']['title']
          'libconfig example'
          >>> config.window.title
          'libconfig example'
      '''
  
      if isinstance(f.read(0), bytes):
          raise TypeError("libconf.load() input file must by unicode")
  
      tokenstream = TokenStream.from_file(f,
                                          filename=filename,
                                          includedir=includedir)
      return Parser(tokenstream).parse()
function_tokens: def load ( f , filename = None , includedir = '' ) : if isinstance ( f . read ( 0 ) , bytes ) : raise TypeError ( "libconf.load() input file must by unicode" ) tokenstream = TokenStream . from_file ( f , filename = filename , includedir = includedir ) return Parser ( tokenstream ) . parse ( )