diff options
author | Raymond Hettinger <python@rcn.com> | 2004-03-20 18:25:31 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-03-20 18:25:31 (GMT) |
commit | fe703e0650cdbbf35c74c227c8be198dff153145 (patch) | |
tree | 8d75f8a8e65d697d11f77b23cb68264d941ee65a | |
parent | 0813d76cb09f4672bdf893fb4a6eef49a00593db (diff) | |
download | cpython-fe703e0650cdbbf35c74c227c8be198dff153145.zip cpython-fe703e0650cdbbf35c74c227c8be198dff153145.tar.gz cpython-fe703e0650cdbbf35c74c227c8be198dff153145.tar.bz2 |
SF bug #918371: hasattr()'s return type
Replace 1 and 0 with True and False.
-rw-r--r-- | Doc/lib/libfuncs.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index e5d9923..a96fe49 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -469,8 +469,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} |