summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-09-27 15:49:56 (GMT)
committerFred Drake <fdrake@acm.org>2002-09-27 15:49:56 (GMT)
commit2ca041fde0e20077b1a2bdb33a54db4c3badf38a (patch)
tree8cd094ffbd1b8c5ff55c250011edcff7e422895f /Doc
parent309db061af45c9f85d9fafcbb5f39a332486906e (diff)
downloadcpython-2ca041fde0e20077b1a2bdb33a54db4c3badf38a.zip
cpython-2ca041fde0e20077b1a2bdb33a54db4c3badf38a.tar.gz
cpython-2ca041fde0e20077b1a2bdb33a54db4c3badf38a.tar.bz2
items(): New method, provided by Gustavo Niemeyer in SF bug #545096.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcfgparser.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/lib/libcfgparser.tex b/Doc/lib/libcfgparser.tex
index c50b456..956de15 100644
--- a/Doc/lib/libcfgparser.tex
+++ b/Doc/lib/libcfgparser.tex
@@ -189,6 +189,13 @@ values are checked in a case-insensitive manner. Any other value will
cause it to raise \exception{ValueError}.
\end{methoddesc}
+\begin{methoddesc}{items}{section\optional{, raw\optional{, vars}}}
+Create a generator which will return a tuple \code{(name, value)} for
+each option in the given \var{section}. Optional arguments have the
+same meaning as for the \code{get()} method.
+\versionadded{2.3}
+\end{methoddesc}
+
\begin{methoddesc}{set}{section, option, value}
If the given section exists, set the given option to the specified value;
otherwise raise \exception{NoSectionError}.