summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-11-27 19:48:03 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-11-27 19:48:03 (GMT)
commitccabed35eea413ca48c2babf01afae8a7518f5c7 (patch)
tree23a0be91c22cf057570418c1945905619c768445
parent94681fc4a35be6a87ceae0daeb687a711699806b (diff)
downloadcpython-ccabed35eea413ca48c2babf01afae8a7518f5c7.zip
cpython-ccabed35eea413ca48c2babf01afae8a7518f5c7.tar.gz
cpython-ccabed35eea413ca48c2babf01afae8a7518f5c7.tar.bz2
Patch #849350: Update to document bool return values. Backported to 2.3.
-rw-r--r--Doc/lib/libdoctest.tex2
-rw-r--r--Doc/lib/liboperator.tex2
-rw-r--r--Doc/lib/libpprint.tex2
-rw-r--r--Doc/lib/libweakref.tex2
4 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex
index a9ef835..e8983c9 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 fbe14f5..e3aae60 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 22ffd7b..66f64e2 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 6536048..4600f0a 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