PyDocs

Nav

File Formats

ConfigParser.read_file

configparser

method of ConfigParser · Added in 3.2 (source)
  • ConfigParser.read_file(f, source=None)
Like read() but the argument must be a file-like object.

The `f` argument must be iterable, returning one line at a time.
Optional second argument is the `source` specifying the name of the
file being read. If not given, it is taken from f.name. If `f` has no
`name` attribute, `<???>` is used.
0 Examples
No examples for configparser/ConfigParser.read_file.
See Also
No see-alsos for configparser/ConfigParser.read_file
0 Notes
No notes for ConfigParser.read_file