Kaydet (Commit) 8928a7e9 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

rephrase has_key doc

üst dcee09d9
......@@ -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
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment