mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Remove yet more references to has_key() methods.
This commit is contained in:
parent
6fe2a6c21b
commit
19ab2bd1c7
3 changed files with 6 additions and 7 deletions
|
@ -824,14 +824,14 @@ Mapping Protocol
|
|||
.. cfunction:: int PyMapping_HasKeyString(PyObject *o, char *key)
|
||||
|
||||
On success, return ``1`` if the mapping object has the key *key* and ``0``
|
||||
otherwise. This is equivalent to the Python expression ``o.has_key(key)``.
|
||||
otherwise. This is equivalent to the Python expression ``key in o``.
|
||||
This function always succeeds.
|
||||
|
||||
|
||||
.. cfunction:: int PyMapping_HasKey(PyObject *o, PyObject *key)
|
||||
|
||||
Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. This
|
||||
is equivalent to the Python expression ``o.has_key(key)``. This function always
|
||||
is equivalent to the Python expression ``key in o``. This function always
|
||||
succeeds.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue