@@ -983,13 +983,16 @@ ConfigParser Objects
983983 .. method :: read(filenames, encoding=None)
984984
985985 Attempt to read and parse a list of filenames, returning a list of
986- filenames which were successfully parsed. If *filenames * is a string, it
987- is treated as a single filename. If a file named in *filenames * cannot
988- be opened, that file will be ignored. This is designed so that you can
989- specify a list of potential configuration file locations (for example,
990- the current directory, the user's home directory, and some system-wide
991- directory), and all existing configuration files in the list will be
992- read. If none of the named files exist, the :class: `ConfigParser `
986+ filenames which were successfully parsed.
987+
988+ If *filenames * is a string or :term: `path-like object `, it is treated as
989+ a single filename. If a file named in *filenames * cannot be opened, that
990+ file will be ignored. This is designed so that you can specify a list of
991+ potential configuration file locations (for example, the current
992+ directory, the user's home directory, and some system-wide directory),
993+ and all existing configuration files in the list will be read.
994+
995+ If none of the named files exist, the :class: `ConfigParser `
993996 instance will contain an empty dataset. An application which requires
994997 initial values to be loaded from a file should load the required file or
995998 files using :meth: `read_file ` before calling :meth: `read ` for any
@@ -1006,6 +1009,9 @@ ConfigParser Objects
10061009 The *encoding * parameter. Previously, all files were read using the
10071010 default encoding for :func: `open `.
10081011
1012+ .. versionadded :: 3.6.1
1013+ The *filenames * parameter accepts a :term: `path-like object `.
1014+
10091015
10101016 .. method :: read_file(f, source=None)
10111017
0 commit comments