mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Patch #849350: Update to document bool return values. Backported to 2.3.
This commit is contained in:
parent
94681fc4a3
commit
ccabed35ee
4 changed files with 4 additions and 4 deletions
|
@ -411,7 +411,7 @@ is vulnerable! One workaround is to do
|
|||
|
||||
\begin{verbatim}
|
||||
>>> foo() == {"Hermione": "hippogryph", "Harry": "broomstick"}
|
||||
1
|
||||
True
|
||||
>>>
|
||||
\end{verbatim}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -111,7 +111,7 @@ recursive objects.
|
|||
|
||||
\begin{verbatim}
|
||||
>>> pprint.isreadable(stuff)
|
||||
0
|
||||
False
|
||||
\end{verbatim}
|
||||
\end{funcdesc}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue