Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(25713)

Side by Side Diff: Doc/whatsnew/3.2.rst

Issue 10321: Add support for Message objects and binary data to smtplib.sendmail
Patch Set: Created 8 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/smtplib.rst ('k') | Lib/smtplib.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 **************************** 1 ****************************
2 What's New In Python 3.2 2 What's New In Python 3.2
3 **************************** 3 ****************************
4 4
5 :Author: Raymond Hettinger 5 :Author: Raymond Hettinger
6 :Release: |release| 6 :Release: |release|
7 :Date: |today| 7 :Date: |today|
8 8
9 .. $Id$ 9 .. $Id$
10 Rules for maintenance: 10 Rules for maintenance:
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 replacement for old :meth:`~asyncore.dispatcher.handle_accept()` and avoids 494 replacement for old :meth:`~asyncore.dispatcher.handle_accept()` and avoids
495 the user to call :meth:`~asyncore.dispatcher.accept()` directly. 495 the user to call :meth:`~asyncore.dispatcher.accept()` directly.
496 496
497 (Contributed by Giampaolo RodolĂ ; :issue:`6706`.) 497 (Contributed by Giampaolo RodolĂ ; :issue:`6706`.)
498 498
499 * The :mod:`tempfile` module has a new context manager, 499 * The :mod:`tempfile` module has a new context manager,
500 :class:`~tempfile.TemporaryDirectory` which provides easy deterministic 500 :class:`~tempfile.TemporaryDirectory` which provides easy deterministic
501 cleanup of temporary directories. 501 cleanup of temporary directories.
502 502
503 (Contributed by Neil Schemenauer and Nick Coghlan; :issue:`5178`.) 503 (Contributed by Neil Schemenauer and Nick Coghlan; :issue:`5178`.)
504
505 * The :mod:`smtplib` :class:`~smtplib.SMTP` class now accepts a byte string
506 for the *msg* argument to the :meth:`~smtplib.SMTP.sendmail` method,
507 and a new method, :meth:`~smtplib.SMTP.send_message` accepts a
508 :class:`~email.message.Message` object and can optionally obtain the
509 *from_addr* and *to_addrs* addresses directly from the object.
510
511 (Contributed by R. David Murray, :issue:`10321`.)
504 512
505 513
506 Multi-threading 514 Multi-threading
507 =============== 515 ===============
508 516
509 * The mechanism for serializing execution of concurrently running Python threads 517 * The mechanism for serializing execution of concurrently running Python threads
510 (generally known as the GIL or Global Interpreter Lock) has been rewritten. 518 (generally known as the GIL or Global Interpreter Lock) has been rewritten.
511 Among the objectives were more predictable switching intervals and reduced 519 Among the objectives were more predictable switching intervals and reduced
512 overhead due to lock contention and the number of ensuing system calls. The 520 overhead due to lock contention and the number of ensuing system calls. The
513 notion of a "check interval" to allow thread switches has been abandoned and 521 notion of a "check interval" to allow thread switches has been abandoned and
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 660
653 * "t#" format has been removed: use "s#" or "s*" instead 661 * "t#" format has been removed: use "s#" or "s*" instead
654 * "w" and "w#" formats has been removed: use "w*" instead 662 * "w" and "w#" formats has been removed: use "w*" instead
655 663
656 * The :c:type:`PyCObject` type, deprecated in 3.1, has been removed. To wrap 664 * The :c:type:`PyCObject` type, deprecated in 3.1, has been removed. To wrap
657 opaque C pointers in Python objects, the :c:type:`PyCapsule` API should be use d 665 opaque C pointers in Python objects, the :c:type:`PyCapsule` API should be use d
658 instead; the new type has a well-defined interface for passing typing safety 666 instead; the new type has a well-defined interface for passing typing safety
659 information and a less complicated signature for calling a destructor. 667 information and a less complicated signature for calling a destructor.
660 668
661 * Remove sys.setfilesystemencoding() function: it was broken by design. 669 * Remove sys.setfilesystemencoding() function: it was broken by design.
OLDNEW
« no previous file with comments | « Doc/library/smtplib.rst ('k') | Lib/smtplib.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+