@@ -988,13 +988,16 @@ ConfigParser Objects
988988 .. method :: read(filenames, encoding=None)
989989
990990 Attempt to read and parse a list of filenames, returning a list of
991- filenames which were successfully parsed. If *filenames * is a string, it
992- is treated as a single filename. If a file named in *filenames * cannot
993- be opened, that file will be ignored. This is designed so that you can
994- specify a list of potential configuration file locations (for example,
995- the current directory, the user's home directory, and some system-wide
996- directory), and all existing configuration files in the list will be
997- read. If none of the named files exist, the :class: `ConfigParser `
991+ filenames which were successfully parsed.
992+
993+ If *filenames * is a string or :term: `path-like object `, it is treated as
994+ a single filename. If a file named in *filenames * cannot be opened, that
995+ file will be ignored. This is designed so that you can specify a list of
996+ potential configuration file locations (for example, the current
997+ directory, the user's home directory, and some system-wide directory),
998+ and all existing configuration files in the list will be read.
999+
1000+ If none of the named files exist, the :class: `ConfigParser `
9981001 instance will contain an empty dataset. An application which requires
9991002 initial values to be loaded from a file should load the required file or
10001003 files using :meth: `read_file ` before calling :meth: `read ` for any
@@ -1011,6 +1014,9 @@ ConfigParser Objects
10111014 The *encoding * parameter. Previously, all files were read using the
10121015 default encoding for :func: `open `.
10131016
1017+ .. versionadded :: 3.6.1
1018+ The *filenames * parameter accepts a :term: `path-like object `.
1019+
10141020
10151021 .. method :: read_file(f, source=None)
10161022
0 commit comments