summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-05-18 04:24:02 (GMT)
committerFred Drake <fdrake@acm.org>2004-05-18 04:24:02 (GMT)
commit82903148a8b4d7f27c5b3180331efd98600b21e1 (patch)
treeb3e2c38eb4933023f71475cfc7ab935587b2305b /Doc
parentb4c6091984d846e43667cd6be6a7e01e79dbc3d7 (diff)
downloadcpython-82903148a8b4d7f27c5b3180331efd98600b21e1.zip
cpython-82903148a8b4d7f27c5b3180331efd98600b21e1.tar.gz
cpython-82903148a8b4d7f27c5b3180331efd98600b21e1.tar.bz2
ConfigParser:
- read() method returns a list of files parsed successfully - add tests, documentation (closes SF patch #677651)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcfgparser.tex4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/lib/libcfgparser.tex b/Doc/lib/libcfgparser.tex
index d5c9757..bc15655 100644
--- a/Doc/lib/libcfgparser.tex
+++ b/Doc/lib/libcfgparser.tex
@@ -177,7 +177,8 @@ return \constant{True}; otherwise return \constant{False}.
\end{methoddesc}
\begin{methoddesc}{read}{filenames}
-Read and parse a list of filenames. If \var{filenames} is a string or
+Attempt to read and parse a list of filenames, returning a list of filenames
+which were successfully parsed. If \var{filenames} is a string or
Unicode string, it is treated as a single filename.
If a file named in \var{filenames} cannot be opened, that file will be
ignored. This is designed so that you can specify a list of potential
@@ -197,6 +198,7 @@ config = ConfigParser.ConfigParser()
config.readfp(open('defaults.cfg'))
config.read(['site.cfg', os.path.expanduser('~/.myapp.cfg')])
\end{verbatim}
+\versionchanged[Returns list of successfully parsed filenames]{2.4}
\end{methoddesc}
\begin{methoddesc}{readfp}{fp\optional{, filename}}