Commit 439063a7 authored by Raymond Hettinger's avatar Raymond Hettinger

SF patch #787929: reflect the introduce of boolean type(libcfgparser.tex)

(Contributed by George Yoshida.)
parent 219e09a6
......@@ -217,10 +217,10 @@ A convenience method which coerces the \var{option} in the specified
\begin{methoddesc}{getboolean}{section, option}
A convenience method which coerces the \var{option} in the specified
\var{section} to a Boolean value. Note that the accepted values
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},
\code{false}, and \code{off}, which cause it to return false. These
values are checked in a case-insensitive manner. Any other value will
for the option are \code{"1"}, \code{"yes"}, \code{"true"}, and \code{"on"},
which cause this method to return \code{True}, and \code{"0"}, \code{"no"},
\code{"false"}, and \code{"off"}, which cause it to return \code{False}. These
string values are checked in a case-insensitive manner. Any other value will
cause it to raise \exception{ValueError}.
\end{methoddesc}
......
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