From: Fred Drake Date: Tue, 9 Oct 2001 14:58:24 +0000 (+0000) Subject: Note that the values for Boolean options are case-insensitive. X-Git-Tag: v2.2.1c1~1383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6959a2fcd75e20515b0d1d2c24b5d409b89e3421;p=python Note that the values for Boolean options are case-insensitive. --- diff --git a/Doc/lib/libcfgparser.tex b/Doc/lib/libcfgparser.tex index 591df2e942..346ba8f82b 100644 --- a/Doc/lib/libcfgparser.tex +++ b/Doc/lib/libcfgparser.tex @@ -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 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. Any -other value will cause it to raise \exception{ValueError}. +\code{false}, and \code{off}, which cause it to return false. These +values are checked in a case-insensitive manner. Any other value will +cause it to raise \exception{ValueError}. \end{methoddesc} \begin{methoddesc}{set}{section, option, value}