From: Raymond Hettinger Date: Sat, 20 Mar 2004 18:26:42 +0000 (+0000) Subject: SF bug #918371: hasattr()'s return type X-Git-Tag: v2.3.4c1~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8ec4763d57e691771dbc2940750fbdb7fa8e0f6;p=thirdparty%2FPython%2Fcpython.git SF bug #918371: hasattr()'s return type Replace 1 and 0 with True and False. --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 52c863989d52..9fa2323abfce 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -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}