File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -218,11 +218,12 @@ \subsection{Message Objects \label{message-objects}}
218218\code {\var {m}.get(name\optional {, deafult})},
219219\code {\var {m}.has_key(name)}, \code {\var {m}.keys()},
220220\code {\var {m}.values()} \code {\var {m}.items()}, and
221- \code {\var {m}.setdefault(name\optional {, default})} act as expected
222- (and consistently). \class {Message} instances also support the
223- mapping writable interface \code {\var {m}[name] = value} and \code {del
224- \var {m}[name]}. \class {Message} objects do not support the
225- \method {clear()}, \method {copy()}, \method {popitem()}, or
221+ \code {\var {m}.setdefault(name\optional {, default})} act as expected,
222+ with the one difference that \method {get()} and \method {setdefault()}
223+ use an empty string as the default value. \class {Message} instances
224+ also support the mapping writable interface \code {\var {m}[name] =
225+ value} and \code {del \var {m}[name]}. \class {Message} objects do not
226+ support the \method {clear()}, \method {copy()}, \method {popitem()}, or
226227\method {update()} methods of the mapping interface. (Support for
227228\method {.get()} and \method {.setdefault()} was only added in Python
2282292.2.)
You can’t perform that action at this time.
0 commit comments