Kaydet (Commit) ccabed35 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #849350: Update to document bool return values. Backported to 2.3.

üst 94681fc4
...@@ -411,7 +411,7 @@ is vulnerable! One workaround is to do ...@@ -411,7 +411,7 @@ is vulnerable! One workaround is to do
\begin{verbatim} \begin{verbatim}
>>> foo() == {"Hermione": "hippogryph", "Harry": "broomstick"} >>> foo() == {"Hermione": "hippogryph", "Harry": "broomstick"}
1 True
>>> >>>
\end{verbatim} \end{verbatim}
......
...@@ -249,7 +249,7 @@ measure of reliability with instance objects. For example:} ...@@ -249,7 +249,7 @@ measure of reliability with instance objects. For example:}
>>> import operator >>> import operator
>>> o = C() >>> o = C()
>>> operator.isMappingType(o) >>> operator.isMappingType(o)
1 True
\end{verbatim} \end{verbatim}
\begin{funcdesc}{isCallable}{o} \begin{funcdesc}{isCallable}{o}
......
...@@ -111,7 +111,7 @@ recursive objects. ...@@ -111,7 +111,7 @@ recursive objects.
\begin{verbatim} \begin{verbatim}
>>> pprint.isreadable(stuff) >>> pprint.isreadable(stuff)
0 False
\end{verbatim} \end{verbatim}
\end{funcdesc} \end{funcdesc}
......
...@@ -186,7 +186,7 @@ referent to be obtained, if it still exists, by calling it: ...@@ -186,7 +186,7 @@ referent to be obtained, if it still exists, by calling it:
>>> r = weakref.ref(o) >>> r = weakref.ref(o)
>>> o2 = r() >>> o2 = r()
>>> o is o2 >>> o is o2
1 True
\end{verbatim} \end{verbatim}
If the referent no longer exists, calling the reference object returns If the referent no longer exists, calling the reference object returns
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment