Remove yet more references to has_key() methods.

This commit is contained in:
Collin Winter 2007-09-10 00:20:46 +00:00
parent 6fe2a6c21b
commit 19ab2bd1c7
3 changed files with 6 additions and 7 deletions

View file

@ -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.