mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
SF patch #798467: Update docstring of has_key for bool changes
(Contributed by George Yoshida.)
This commit is contained in:
parent
6f6d7b93bc
commit
574aa32578
2 changed files with 2 additions and 2 deletions
|
|
@ -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.")},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue