mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Note that the values for Boolean options are case-insensitive.
This commit is contained in:
parent
454d791c91
commit
6959a2fcd7
1 changed files with 3 additions and 2 deletions
|
|
@ -166,8 +166,9 @@ A convenience method which coerces the \var{option} in the specified
|
||||||
\var{section} to a Boolean value. Note that the accepted values
|
\var{section} to a Boolean value. Note that the accepted values
|
||||||
for the option are \code{1}, \code{yes}, \code{true}, and \code{on},
|
for the option are \code{1}, \code{yes}, \code{true}, and \code{on},
|
||||||
which cause this method to return true, and \code{0}, \code{no},
|
which cause this method to return true, and \code{0}, \code{no},
|
||||||
\code{false}, and \code{off}, which cause it to return false. Any
|
\code{false}, and \code{off}, which cause it to return false. These
|
||||||
other value will cause it to raise \exception{ValueError}.
|
values are checked in a case-insensitive manner. Any other value will
|
||||||
|
cause it to raise \exception{ValueError}.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{set}{section, option, value}
|
\begin{methoddesc}{set}{section, option, value}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue