Skip to content

Commit ccabed3

Browse files
committed
Patch #849350: Update to document bool return values. Backported to 2.3.
1 parent 94681fc commit ccabed3

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/lib/libdoctest.tex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ \subsection{Warnings}
411411

412412
\begin{verbatim}
413413
>>> foo() == {"Hermione": "hippogryph", "Harry": "broomstick"}
414-
1
414+
True
415415
>>>
416416
\end{verbatim}
417417

‎Doc/lib/liboperator.tex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ \section{\module{operator} ---
249249
>>> import operator
250250
>>> o = C()
251251
>>> operator.isMappingType(o)
252-
1
252+
True
253253
\end{verbatim}
254254

255255
\begin{funcdesc}{isCallable}{o}

‎Doc/lib/libpprint.tex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ \section{\module{pprint} ---
111111

112112
\begin{verbatim}
113113
>>> pprint.isreadable(stuff)
114-
0
114+
False
115115
\end{verbatim}
116116
\end{funcdesc}
117117

‎Doc/lib/libweakref.tex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ \subsection{Weak Reference Objects
186186
>>> r = weakref.ref(o)
187187
>>> o2 = r()
188188
>>> o is o2
189-
1
189+
True
190190
\end{verbatim}
191191

192192
If the referent no longer exists, calling the reference object returns

0 commit comments

Comments
 (0)