mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
items(): New method, provided by Gustavo Niemeyer in SF bug #545096.
This commit is contained in:
parent
309db061af
commit
2ca041fde0
2 changed files with 40 additions and 0 deletions
|
@ -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}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue