From 8928a7e911357e57b92aa1738940fec241ded28e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 31 Oct 2008 20:41:44 +0000 Subject: rephrase has_key doc --- Doc/ACKS.txt | 1 + Doc/library/stdtypes.rst | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt index 7680d00..0bff6bd 100644 --- a/Doc/ACKS.txt +++ b/Doc/ACKS.txt @@ -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 diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index f5a4e6c..00d420b 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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() -- cgit v0.12