From: Benjamin Peterson Date: Fri, 31 Oct 2008 20:41:44 +0000 (+0000) Subject: rephrase has_key doc X-Git-Tag: v2.7a1~2690 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8928a7e911357e57b92aa1738940fec241ded28e;p=python rephrase has_key doc --- diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt index 7680d00110..0bff6bdefe 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 f5a4e6c0bd..00d420bda9 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()