rephrase has_key doc

This commit is contained in:
Benjamin Peterson 2008-10-31 20:41:44 +00:00
parent dcee09d920
commit 8928a7e911
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ docs@python.org), and we'll be glad to correct the problem.
* A. Amoroso
* Pehr Anderson
* Oliver Andrich
* Heidi Annexstad
* Jesús Cea Avión
* Daniel Barclay
* Chris Barker

View File

@ -1924,7 +1924,8 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
.. method:: has_key(key)
``dict.has_key(key)`` is equivalent to ``key in d``, but deprecated.
Test for the presence of *key* in the dictionary. :meth:`has_key` is
deprecated in favor of ``key in d``.
.. method:: items()