OLD | NEW |
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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 (Contributed by Neil Schemenauer and Nick Coghlan; :issue:`5178`.) | 546 (Contributed by Neil Schemenauer and Nick Coghlan; :issue:`5178`.) |
547 | 547 |
548 * The :mod:`smtplib` :class:`~smtplib.SMTP` class now accepts a byte string | 548 * The :mod:`smtplib` :class:`~smtplib.SMTP` class now accepts a byte string |
549 for the *msg* argument to the :meth:`~smtplib.SMTP.sendmail` method, | 549 for the *msg* argument to the :meth:`~smtplib.SMTP.sendmail` method, |
550 and a new method, :meth:`~smtplib.SMTP.send_message` accepts a | 550 and a new method, :meth:`~smtplib.SMTP.send_message` accepts a |
551 :class:`~email.message.Message` object and can optionally obtain the | 551 :class:`~email.message.Message` object and can optionally obtain the |
552 *from_addr* and *to_addrs* addresses directly from the object. | 552 *from_addr* and *to_addrs* addresses directly from the object. |
553 | 553 |
554 (Contributed by R. David Murray, :issue:`10321`.) | 554 (Contributed by R. David Murray, :issue:`10321`.) |
555 | 555 |
| 556 * The :mod:`pydoc` module now provides a much improved web server interface, |
| 557 as well as a new command line option to automatically open a browser |
| 558 window to display that server. |
| 559 ·· |
| 560 (Contributed by Ron Adam; :issue:`2001`.) |
| 561 |
556 | 562 |
557 Multi-threading | 563 Multi-threading |
558 =============== | 564 =============== |
559 | 565 |
560 * The mechanism for serializing execution of concurrently running Python threads | 566 * The mechanism for serializing execution of concurrently running Python threads |
561 (generally known as the GIL or Global Interpreter Lock) has been rewritten. | 567 (generally known as the GIL or Global Interpreter Lock) has been rewritten. |
562 Among the objectives were more predictable switching intervals and reduced | 568 Among the objectives were more predictable switching intervals and reduced |
563 overhead due to lock contention and the number of ensuing system calls. The | 569 overhead due to lock contention and the number of ensuing system calls. The |
564 notion of a "check interval" to allow thread switches has been abandoned and | 570 notion of a "check interval" to allow thread switches has been abandoned and |
565 replaced by an absolute duration expressed in seconds. This parameter is | 571 replaced by an absolute duration expressed in seconds. This parameter is |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 714 |
709 * "t#" format has been removed: use "s#" or "s*" instead | 715 * "t#" format has been removed: use "s#" or "s*" instead |
710 * "w" and "w#" formats has been removed: use "w*" instead | 716 * "w" and "w#" formats has been removed: use "w*" instead |
711 | 717 |
712 * The :c:type:`PyCObject` type, deprecated in 3.1, has been removed. To wrap | 718 * The :c:type:`PyCObject` type, deprecated in 3.1, has been removed. To wrap |
713 opaque C pointers in Python objects, the :c:type:`PyCapsule` API should be use
d | 719 opaque C pointers in Python objects, the :c:type:`PyCapsule` API should be use
d |
714 instead; the new type has a well-defined interface for passing typing safety | 720 instead; the new type has a well-defined interface for passing typing safety |
715 information and a less complicated signature for calling a destructor. | 721 information and a less complicated signature for calling a destructor. |
716 | 722 |
717 * Remove sys.setfilesystemencoding() function: it was broken by design. | 723 * Remove sys.setfilesystemencoding() function: it was broken by design. |
OLD | NEW |