summaryrefslogtreecommitdiffstats
path: root/Objects/descrobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-09-01 22:12:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-09-01 22:12:08 (GMT)
commit574aa325785c58c4765f110544ebbb80cc75edbe (patch)
treec8ed263e09394ac994d5323a39003290d82044c1 /Objects/descrobject.c
parent6f6d7b93bc537908ed61353bc8fec0f1837e7711 (diff)
downloadcpython-574aa325785c58c4765f110544ebbb80cc75edbe.zip
cpython-574aa325785c58c4765f110544ebbb80cc75edbe.tar.gz
cpython-574aa325785c58c4765f110544ebbb80cc75edbe.tar.bz2
SF patch #798467: Update docstring of has_key for bool changes
(Contributed by George Yoshida.)
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r--Objects/descrobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 1c50986..745f95d 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -765,7 +765,7 @@ proxy_copy(proxyobject *pp)
static PyMethodDef proxy_methods[] = {
{"has_key", (PyCFunction)proxy_has_key, METH_O,
- PyDoc_STR("D.has_key(k) -> 1 if D has a key k, else 0")},
+ PyDoc_STR("D.has_key(k) -> True if D has a key k, else False")},
{"get", (PyCFunction)proxy_get, METH_VARARGS,
PyDoc_STR("D.get(k[,d]) -> D[k] if D.has_key(k), else d."
" d defaults to None.")},