]> granicus.if.org Git - python/commitdiff
Patch #849350: Update to document bool return values. Backported to 2.3.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 27 Nov 2003 19:48:03 +0000 (19:48 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 27 Nov 2003 19:48:03 +0000 (19:48 +0000)
Doc/lib/libdoctest.tex
Doc/lib/liboperator.tex
Doc/lib/libpprint.tex
Doc/lib/libweakref.tex

index a9ef835731ac18e3cdb9d2cf468bd7381eee486c..e8983c99248c214b60cbc589e90662e8e2630943 100644 (file)
@@ -411,7 +411,7 @@ is vulnerable!  One workaround is to do
 
 \begin{verbatim}
 >>> foo() == {"Hermione": "hippogryph", "Harry": "broomstick"}
-1
+True
 >>>
 \end{verbatim}
 
index fbe14f541178c4e1f65de49985d7caf1f7946bc7..e3aae60706a45272aa5498e2bdc4937182032116 100644 (file)
@@ -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}
index 22ffd7bada783736b3cdc79bb7ba5af9ffcfc6c5..66f64e26c13e7908b690b90d1d78f2ec390927fb 100644 (file)
@@ -111,7 +111,7 @@ recursive objects.
 
 \begin{verbatim}
 >>> pprint.isreadable(stuff)
-0
+False
 \end{verbatim}
 \end{funcdesc}
 
index 6536048639959f9158cb9f40805b9932a8ecb7fb..4600f0a2725df161d4e2f314c7e13a99fd40f1af 100644 (file)
@@ -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