From: Martin v. Löwis Date: Thu, 27 Nov 2003 19:43:12 +0000 (+0000) Subject: Patch #849350: Update to document bool return values. X-Git-Tag: v2.3.3c1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8dd5bc3cd7fd13f8030bbee6d56ae7f0497a83f;p=thirdparty%2FPython%2Fcpython.git Patch #849350: Update to document bool return values. --- diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex index a9ef835731ac..e8983c99248c 100644 --- a/Doc/lib/libdoctest.tex +++ b/Doc/lib/libdoctest.tex @@ -411,7 +411,7 @@ is vulnerable! One workaround is to do \begin{verbatim} >>> foo() == {"Hermione": "hippogryph", "Harry": "broomstick"} -1 +True >>> \end{verbatim} diff --git a/Doc/lib/liboperator.tex b/Doc/lib/liboperator.tex index fbe14f541178..e3aae60706a4 100644 --- a/Doc/lib/liboperator.tex +++ b/Doc/lib/liboperator.tex @@ -249,7 +249,7 @@ measure of reliability with instance objects. For example:} >>> import operator >>> o = C() >>> operator.isMappingType(o) -1 +True \end{verbatim} \begin{funcdesc}{isCallable}{o} diff --git a/Doc/lib/libpprint.tex b/Doc/lib/libpprint.tex index 22ffd7bada78..66f64e26c13e 100644 --- a/Doc/lib/libpprint.tex +++ b/Doc/lib/libpprint.tex @@ -111,7 +111,7 @@ recursive objects. \begin{verbatim} >>> pprint.isreadable(stuff) -0 +False \end{verbatim} \end{funcdesc} diff --git a/Doc/lib/libweakref.tex b/Doc/lib/libweakref.tex index 684e2b407a31..297d9b65e75b 100644 --- a/Doc/lib/libweakref.tex +++ b/Doc/lib/libweakref.tex @@ -186,7 +186,7 @@ referent to be obtained, if it still exists, by calling it: >>> r = weakref.ref(o) >>> o2 = r() >>> o is o2 -1 +True \end{verbatim} If the referent no longer exists, calling the reference object returns