PyDocs

Nav

Internet Data Handling

message_from_bytes

email

function · Added in 3.2 (source)
  • message_from_bytes(s, _class=None, *, policy=policy.compat32)
Parse a bytes string into a Message object model.

Optional _class and strict are passed to the Parser constructor.
Changed in 3.3
  • 3.3: Removed the strict argument. Added the policy keyword.
1 Example
>>> import email
>>> msg = email.message_from_bytes(myBytes)
from the Python docs
See Also
No see-alsos for email/message_from_bytes
0 Notes
No notes for message_from_bytes