diff options
author | Fred Drake <fdrake@acm.org> | 2003-12-05 18:57:00 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-12-05 18:57:00 (GMT) |
commit | f96dd83bb49a4232ac01725b5b0c40d392b7b1eb (patch) | |
tree | eeb6b14bc3e9b153c382a6943314b585e20e9c01 /Doc | |
parent | 713ade69c5ad52fdaac69d9e777b125da2cf1c75 (diff) | |
download | cpython-f96dd83bb49a4232ac01725b5b0c40d392b7b1eb.zip cpython-f96dd83bb49a4232ac01725b5b0c40d392b7b1eb.tar.gz cpython-f96dd83bb49a4232ac01725b5b0c40d392b7b1eb.tar.bz2 |
- fix markup in the bool() description
- note the behavior of bool() with no arg in the main body of the
description
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libfuncs.tex | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 61880ae..d53ff24 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -71,17 +71,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}{callable}{object} |