Kaydet (Commit) 574aa325 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

SF patch #798467: Update docstring of has_key for bool changes

(Contributed by George Yoshida.)
üst 6f6d7b93
......@@ -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.")},
......
......@@ -1733,7 +1733,7 @@ dict_iteritems(dictobject *dict)
PyDoc_STRVAR(has_key__doc__,
"D.has_key(k) -> 1 if D has a key k, else 0");
"D.has_key(k) -> True if D has a key k, else False");
PyDoc_STRVAR(get__doc__,
"D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment