]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#18600: add policy to add_string, and as_bytes and __bytes__ methods.
authorR David Murray <rdmurray@bitdance.com>
Fri, 9 Aug 2013 20:15:28 +0000 (16:15 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 9 Aug 2013 20:15:28 +0000 (16:15 -0400)
commitbb17d2b857d33e474f830c4a665f1fa412eb29f1
tree6abcd65ca409e435a0a0b4b7184c3a2318402e3e
parent3f58277382f3e337d225da547bdb26bc555570a4
#18600: add policy to add_string, and as_bytes and __bytes__ methods.

This was triggered by wanting to make the doctest in email.policy.rst pass;
as_bytes and __bytes__ are clearly useful now that we have BytesGenerator.
Also updated the Message docs to document the policy keyword that was
added in 3.3.
Doc/library/email.message.rst
Doc/library/email.policy.rst
Doc/whatsnew/3.4.rst
Lib/email/message.py
Lib/test/test_email/test_email.py
Misc/NEWS