mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Remove two lingering references to now-gone has_key() methods from the library docs.
This commit is contained in:
parent
c111d9fbbd
commit
f6b8121255
2 changed files with 4 additions and 3 deletions
|
|
@ -156,7 +156,7 @@ manipulation of WSGI response headers using a mapping-like interface.
|
|||
|
||||
:class:`Headers` objects support typical mapping operations including
|
||||
:meth:`__getitem__`, :meth:`get`, :meth:`__setitem__`, :meth:`setdefault`,
|
||||
:meth:`__delitem__`, :meth:`__contains__` and :meth:`has_key`. For each of
|
||||
:meth:`__delitem__` and :meth:`__contains__`. For each of
|
||||
these methods, the key is the header name (treated case-insensitively), and the
|
||||
value is the first value associated with that header name. Setting a header
|
||||
deletes any existing values for that header, then adds a new value at the end of
|
||||
|
|
|
|||
|
|
@ -324,8 +324,9 @@ The :class:`Attributes` Interface
|
|||
---------------------------------
|
||||
|
||||
:class:`Attributes` objects implement a portion of the mapping protocol,
|
||||
including the methods :meth:`copy`, :meth:`get`, :meth:`has_key`, :meth:`items`,
|
||||
:meth:`keys`, and :meth:`values`. The following methods are also provided:
|
||||
including the methods :meth:`copy`, :meth:`get`, :meth:`__contains__`,
|
||||
:meth:`items`, :meth:`keys`, and :meth:`values`. The following methods
|
||||
are also provided:
|
||||
|
||||
|
||||
.. method:: Attributes.getLength()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue