summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-28 12:22:12 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-28 12:22:12 (GMT)
commit8ca6c84b6f8a6cd0c76db8937d471bddb4bf2a1d (patch)
tree891c59c1df48332b3927d78f0295f19fb9954f81 /Doc/library
parentfc8eef3c78200593c9c70974e48ab859779c607a (diff)
downloadcpython-8ca6c84b6f8a6cd0c76db8937d471bddb4bf2a1d.zip
cpython-8ca6c84b6f8a6cd0c76db8937d471bddb4bf2a1d.tar.gz
cpython-8ca6c84b6f8a6cd0c76db8937d471bddb4bf2a1d.tar.bz2
Phase out has_key usage in the tutorial; correct docs for PyMapping_HasKey*.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/rfc822.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/rfc822.rst b/Doc/library/rfc822.rst
index da9f536..37fef78 100644
--- a/Doc/library/rfc822.rst
+++ b/Doc/library/rfc822.rst
@@ -260,7 +260,7 @@ A :class:`Message` instance has the following methods:
:class:`Message` instances also support a limited mapping interface. In
particular: ``m[name]`` is like ``m.getheader(name)`` but raises :exc:`KeyError`
if there is no matching header; and ``len(m)``, ``m.get(name[, default])``,
-``m.has_key(name)``, ``m.keys()``, ``m.values()`` ``m.items()``, and
+``name in m``, ``m.keys()``, ``m.values()`` ``m.items()``, and
``m.setdefault(name[, default])`` act as expected, with the one difference
that :meth:`setdefault` uses an empty string as the default value.
:class:`Message` instances also support the mapping writable interface ``m[name]