Kaydet (Commit) b35f0ce2 authored tarafından Fred Drake's avatar Fred Drake

Update the description of getboolean() to reflect the changes made by

SF patch #467580.
üst a0472f73
...@@ -163,9 +163,11 @@ A convenience method which coerces the \var{option} in the specified ...@@ -163,9 +163,11 @@ A convenience method which coerces the \var{option} in the specified
\begin{methoddesc}{getboolean}{section, option} \begin{methoddesc}{getboolean}{section, option}
A convenience method which coerces the \var{option} in the specified A convenience method which coerces the \var{option} in the specified
\var{section} to a Boolean value. Note that the only accepted values \var{section} to a Boolean value. Note that the accepted values
for the option are \samp{0} and \samp{1}, any others will raise for the option are \code{1}, \code{yes}, \code{true}, and \code{on},
\exception{ValueError}. which cause this method to return true, and \code{0}, \code{no},
\code{false}, and \code{off}, which cause it to return false. 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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment