rephrase has_key doc
This commit is contained in:
parent
dcee09d920
commit
8928a7e911
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue