summaryrefslogtreecommitdiffstats
path: root/Doc/lib/librfc822.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-22 22:00:40 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-22 22:00:40 (GMT)
commit98cfab65234d3a8d1708f9c021d17db1c8a661bb (patch)
treefb871ebf4cc74970d762dc6154a3216622812b84 /Doc/lib/librfc822.tex
parentfa77e1a1b1ec479600a0f3a1dbc3faf28140d31f (diff)
downloadcpython-98cfab65234d3a8d1708f9c021d17db1c8a661bb.zip
cpython-98cfab65234d3a8d1708f9c021d17db1c8a661bb.tar.gz
cpython-98cfab65234d3a8d1708f9c021d17db1c8a661bb.tar.bz2
One more update related to the new get() and setdefault() methods on the
Message object.
Diffstat (limited to 'Doc/lib/librfc822.tex')
-rw-r--r--Doc/lib/librfc822.tex11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/lib/librfc822.tex b/Doc/lib/librfc822.tex
index 55ec5c2..f0110eb 100644
--- a/Doc/lib/librfc822.tex
+++ b/Doc/lib/librfc822.tex
@@ -218,11 +218,12 @@ there is no matching header; and \code{len(\var{m})},
\code{\var{m}.get(name\optional{, deafult})},
\code{\var{m}.has_key(name)}, \code{\var{m}.keys()},
\code{\var{m}.values()} \code{\var{m}.items()}, and
-\code{\var{m}.setdefault(name\optional{, default})} act as expected
-(and consistently). \class{Message} instances also support the
-mapping writable interface \code{\var{m}[name] = value} and \code{del
-\var{m}[name]}. \class{Message} objects do not support the
-\method{clear()}, \method{copy()}, \method{popitem()}, or
+\code{\var{m}.setdefault(name\optional{, default})} act as expected,
+with the one difference that \method{get()} and \method{setdefault()}
+use an empty string as the default value. \class{Message} instances
+also support the mapping writable interface \code{\var{m}[name] =
+value} and \code{del \var{m}[name]}. \class{Message} objects do not
+support the \method{clear()}, \method{copy()}, \method{popitem()}, or
\method{update()} methods of the mapping interface. (Support for
\method{.get()} and \method{.setdefault()} was only added in Python
2.2.)