diff options
author | Collin Winter <collinw@gmail.com> | 2007-09-10 00:20:46 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-09-10 00:20:46 (GMT) |
commit | 19ab2bd1c7f2a2b93074a4bc03b738d6a6cac74d (patch) | |
tree | 6d0135f15007e03834183d53da35c940322e64e1 /Doc/c-api/abstract.rst | |
parent | 6fe2a6c21b4e0afae589da798e2392662fb140d7 (diff) | |
download | cpython-19ab2bd1c7f2a2b93074a4bc03b738d6a6cac74d.zip cpython-19ab2bd1c7f2a2b93074a4bc03b738d6a6cac74d.tar.gz cpython-19ab2bd1c7f2a2b93074a4bc03b738d6a6cac74d.tar.bz2 |
Remove yet more references to has_key() methods.
Diffstat (limited to 'Doc/c-api/abstract.rst')
-rw-r--r-- | Doc/c-api/abstract.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/abstract.rst b/Doc/c-api/abstract.rst index 34a0efd..44bd579 100644 --- a/Doc/c-api/abstract.rst +++ b/Doc/c-api/abstract.rst @@ -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. |