From 59bd6da8bc8452e3ef58dedc4ff57bd6cf962428 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 5 Dec 2003 18:55:46 +0000 Subject: [PATCH] - fix markup in the bool() description - note the behavior of bool() with no arg in the main body of the description --- Doc/lib/libfuncs.tex | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 78ed64709bba..c4ce201a5f7e 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -91,17 +91,16 @@ def my_import(name): \begin{funcdesc}{bool}{\optional{x}} Convert a value to a Boolean, using the standard truth testing - procedure. If \code{x} is false, this returns \code{False}; - otherwise it returns \code{True}. \code{bool} is also a class, - which is a subclass of \code{int}. Class \code{bool} cannot be - subclassed further. Its only instances are \code{False} and - \code{True}. - -\indexii{Boolean}{type} -\versionadded{2.2.1} - + procedure. If \var{x} is false or omitted, this returns + \constant{False}; otherwise it returns \constant{True}. + \class{bool} is also a class, which is a subclass of \class{int}. + Class \class{bool} cannot be subclassed further. Its only instances + are \constant{False} and \constant{True}. + + \indexii{Boolean}{type} + \versionadded{2.2.1} \versionchanged[If no argument is given, this function returns - \code{False}]{2.3} + \constant{False}]{2.3} \end{funcdesc} \begin{funcdesc}{buffer}{object\optional{, offset\optional{, size}}} -- 2.47.3