LEFT | RIGHT |
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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 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 | 557 as well as a new command-line option to automatically open a browser |
558 window to display that server. | 558 window to display that server. |
559 ·· | 559 ·· |
560 (Contributed by Ron Adam; :issue:`2001`.) | 560 (Contributed by Ron Adam; :issue:`2001`.) |
561 | 561 |
| 562 * The :mod:`inspect` module has a new function :func:`getgenatorstate` |
| 563 to easily identify the current state of a generator as one of |
| 564 ``GEN_CREATED``, ``GEN_RUNNING``, ``GEN_SUSPENDED`` or ``GEN_CLOSED``. |
| 565 |
| 566 (Contributed by Rodolpho Eckhardt and Nick Coghlan, :issue:`10220`.) |
| 567 |
| 568 .. XXX: Mention inspect.getattr_static (Michael Foord) |
562 | 569 |
563 Multi-threading | 570 Multi-threading |
564 =============== | 571 =============== |
565 | 572 |
566 * The mechanism for serializing execution of concurrently running Python threads | 573 * The mechanism for serializing execution of concurrently running Python threads |
567 (generally known as the GIL or Global Interpreter Lock) has been rewritten. | 574 (generally known as the GIL or Global Interpreter Lock) has been rewritten. |
568 Among the objectives were more predictable switching intervals and reduced | 575 Among the objectives were more predictable switching intervals and reduced |
569 overhead due to lock contention and the number of ensuing system calls. The | 576 overhead due to lock contention and the number of ensuing system calls. The |
570 notion of a "check interval" to allow thread switches has been abandoned and | 577 notion of a "check interval" to allow thread switches has been abandoned and |
571 replaced by an absolute duration expressed in seconds. This parameter is | 578 replaced by an absolute duration expressed in seconds. This parameter is |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 | 721 |
715 * "t#" format has been removed: use "s#" or "s*" instead | 722 * "t#" format has been removed: use "s#" or "s*" instead |
716 * "w" and "w#" formats has been removed: use "w*" instead | 723 * "w" and "w#" formats has been removed: use "w*" instead |
717 | 724 |
718 * The :c:type:`PyCObject` type, deprecated in 3.1, has been removed. To wrap | 725 * The :c:type:`PyCObject` type, deprecated in 3.1, has been removed. To wrap |
719 opaque C pointers in Python objects, the :c:type:`PyCapsule` API should be use
d | 726 opaque C pointers in Python objects, the :c:type:`PyCapsule` API should be use
d |
720 instead; the new type has a well-defined interface for passing typing safety | 727 instead; the new type has a well-defined interface for passing typing safety |
721 information and a less complicated signature for calling a destructor. | 728 information and a less complicated signature for calling a destructor. |
722 | 729 |
723 * Remove sys.setfilesystemencoding() function: it was broken by design. | 730 * Remove sys.setfilesystemencoding() function: it was broken by design. |
LEFT | RIGHT |