email.message_from_bytes()

email.message_from_bytes(s, _class=email.message.Message, *, policy=policy.compat32)

Return a message object structure from a byte string. This is exactly equivalent to BytesParser().parsebytes(s). Optional _class and strict are interpreted as with the Parser class constructor.

New in version 3.2.

Changed in version 3.3: Removed the strict argument. Added the policy keyword.

doc_python
2016-10-07 17:32:46
Comments
Leave a Comment

Please login to continue.