[Python-checkins] python/dist/src/Doc/lib libfuncs.tex, 1.143.8.10,
1.143.8.11
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Mar 20 13:26:44 EST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv493
Modified Files:
Tag: release23-maint
libfuncs.tex
Log Message:
SF bug #918371: hasattr()'s return type
Replace 1 and 0 with True and False.
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.143.8.10
retrieving revision 1.143.8.11
diff -C2 -d -r1.143.8.10 -r1.143.8.11
*** libfuncs.tex 1 Jan 2004 03:40:57 -0000 1.143.8.10
--- libfuncs.tex 20 Mar 2004 18:26:42 -0000 1.143.8.11
***************
*** 460,465 ****
\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.
(This is implemented by calling \code{getattr(\var{object},
\var{name})} and seeing whether it raises an exception or not.)
--- 460,465 ----
\begin{funcdesc}{hasattr}{object, name}
! 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.)
More information about the Python-checkins
mailing list