mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-114211: Update EmailMessage doc about ordered keys (#114224)
Ordered keys are no longer unlike 'real dict's.
This commit is contained in:
parent
c1db960608
commit
8cda72037b
1 changed files with 3 additions and 3 deletions
|
@ -40,9 +40,9 @@ over the object tree.
|
||||||
The :class:`EmailMessage` dictionary-like interface is indexed by the header
|
The :class:`EmailMessage` dictionary-like interface is indexed by the header
|
||||||
names, which must be ASCII values. The values of the dictionary are strings
|
names, which must be ASCII values. The values of the dictionary are strings
|
||||||
with some extra methods. Headers are stored and returned in case-preserving
|
with some extra methods. Headers are stored and returned in case-preserving
|
||||||
form, but field names are matched case-insensitively. Unlike a real dict,
|
form, but field names are matched case-insensitively. The keys are ordered,
|
||||||
there is an ordering to the keys, and there can be duplicate keys. Additional
|
but unlike a real dict, there can be duplicates. Addtional methods are
|
||||||
methods are provided for working with headers that have duplicate keys.
|
provided for working with headers that have duplicate keys.
|
||||||
|
|
||||||
The *payload* is either a string or bytes object, in the case of simple message
|
The *payload* is either a string or bytes object, in the case of simple message
|
||||||
objects, or a list of :class:`EmailMessage` objects, for MIME container
|
objects, or a list of :class:`EmailMessage` objects, for MIME container
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue