]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF bug #918371: hasattr()'s return type
authorRaymond Hettinger <python@rcn.com>
Sat, 20 Mar 2004 18:26:42 +0000 (18:26 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 20 Mar 2004 18:26:42 +0000 (18:26 +0000)
Replace 1 and 0 with True and False.

Doc/lib/libfuncs.tex

index 52c863989d52e7ce1ec8b77319d07a6222bf6927..9fa2323abfce0d517c7af1ad0f37937f07f4d117 100644 (file)
@@ -459,8 +459,8 @@ class C:
 \end{funcdesc}
 
 \begin{funcdesc}{hasattr}{object, name}
-  The arguments are an object and a string.  The result is 1 if the
-  string is the name of one of the object's attributes, 0 if not.
+  The arguments are an object and a string.  The result is \code{True} if the
+  string is the name of one of the object's attributes, \code{False} if not.
   (This is implemented by calling \code{getattr(\var{object},
   \var{name})} and seeing whether it raises an exception or not.)
 \end{funcdesc}