[Python-checkins] python/dist/src/Doc/lib libcfgparser.tex, 1.29, 1.30

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Thu Aug 14 13:58:37 EDT 2003


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv29602

Modified Files:
	libcfgparser.tex 
Log Message:
SF patch #787929:  reflect the introduce of boolean type(libcfgparser.tex)
(Contributed by George Yoshida.)



Index: libcfgparser.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcfgparser.tex,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** libcfgparser.tex	31 Dec 2002 17:23:26 -0000	1.29
--- libcfgparser.tex	14 Aug 2003 19:58:35 -0000	1.30
***************
*** 218,225 ****
  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
  cause it to raise \exception{ValueError}.
  \end{methoddesc}
--- 218,225 ----
  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 \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}





More information about the Python-checkins mailing list