[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.162,1.163

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sat Mar 20 13:25:33 EST 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32727

Modified Files:
	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.162
retrieving revision 1.163
diff -C2 -d -r1.162 -r1.163
*** libfuncs.tex	19 Mar 2004 15:20:16 -0000	1.162
--- libfuncs.tex	20 Mar 2004 18:25:31 -0000	1.163
***************
*** 470,475 ****
  
  \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.)
--- 470,475 ----
  
  \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