configparser.ConfigParser.read_file()

read_file(f, source=None)

Read and parse configuration data from f which must be an iterable yielding Unicode strings (for example files opened in text mode).

Optional argument source specifies the name of the file being read. If not given and f has a name attribute, that is used for source; the default is '<???>'.

New in version 3.2: Replaces readfp().

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.