|
1 | 1 | \documentclass{howto} |
2 | | -\title{What's New in Python 2.3} |
3 | 2 |
|
4 | | -% We'll let Andrew claim ownership when he's ready. ;-) |
5 | | -%\author{A.M. Kuchling} |
6 | | -%\authoraddress{\email{[email protected]}} |
| 3 | +% $Id$ |
| 4 | + |
| 5 | +\title{What's New in Python 2.3} |
| 6 | +\release{0.01} |
| 7 | +\author{A.M. Kuchling} |
| 8 | +\authoraddress{ \email{ [email protected]}} |
7 | 9 |
|
8 | 10 | \begin{document} |
9 | 11 | \maketitle |
10 | 12 | \tableofcontents |
11 | 13 |
|
12 | | -\section{Introduction \label{intro}} |
| 14 | +%\section{Introduction \label{intro}} |
| 15 | + |
| 16 | +{\large This article is a draft, and is currently up to date for some |
| 17 | +random version of the CVS tree around March 26 2002. Please send any |
| 18 | +additions, comments or errata to the author.} |
| 19 | + |
| 20 | +This article explains the new features in Python 2.3. The tentative |
| 21 | +release date of Python 2.3 is currently scheduled for August 30 2002. |
| 22 | + |
| 23 | +This article doesn't attempt to provide a complete specification of |
| 24 | +the new features, but instead provides a convenient overview. For |
| 25 | +full details, you should refer to the documentation for Python 2.3, |
| 26 | +such as the |
| 27 | +\citetitle[http://www.python.org/doc/2.3/lib/lib.html]{Python Library |
| 28 | +Reference} and the |
| 29 | +\citetitle[http://www.python.org/doc/2.3/ref/ref.html]{Python |
| 30 | +Reference Manual}. If you want to understand the complete |
| 31 | +implementation and design rationale for a change, refer to the PEP for |
| 32 | +a particular new feature. |
| 33 | + |
| 34 | + |
| 35 | +%====================================================================== |
| 36 | +\section{New and Improved Modules} |
| 37 | + |
| 38 | +arraymodule.c: - add Py_UNICODE arrays |
| 39 | +- support +=, *= |
| 40 | + |
| 41 | +Return enhanced tuples in grpmodule |
| 42 | + |
| 43 | +posixmodule: killpg, |
13 | 44 |
|
| 45 | +Expat is now included with the Python source |
14 | 46 |
|
| 47 | +Readline: Add get_history_item, get_current_history_length, and |
| 48 | +redisplay functions. |
| 49 | + |
| 50 | + |
| 51 | +%====================================================================== |
| 52 | +\section{Interpreter Changes and Fixes} |
| 53 | + |
| 54 | +XXX bug? Change the version string from "2.2+" to "2.3a0". disutils peels off |
| 55 | +the first 3 characters of this string in several places, so for as long |
| 56 | +as they remain "2.2" it confuses the heck out of attempts to build 2.3 |
| 57 | +stuff using distutils. |
| 58 | + |
| 59 | +file object can now be subtyped (did this not work before?) |
| 60 | + |
| 61 | +yield is now always available |
| 62 | + |
| 63 | +This adds the module name and a dot in front of the type name in every |
| 64 | +type object initializer, except for built-in types (and those that |
| 65 | +already had this). Note that it touches lots of Mac modules -- I have |
| 66 | +no way to test these but the changes look right. Apologies if they're |
| 67 | +not. This also touches the weakref docs, which contains a sample type |
| 68 | +object initializer. It also touches the mmap test output, because the |
| 69 | +mmap type's repr is included in that output. It touches object.h to |
| 70 | +put the correct description in a comment. |
| 71 | + |
| 72 | +File objects: Grow the string buffer at a mildly exponential rate for |
| 73 | +the getc version of get_line. This makes test_bufio finish in 1.7 |
| 74 | +seconds instead of 57 seconds on my machine (with Py_DEBUG defined). |
| 75 | + |
| 76 | +%====================================================================== |
| 77 | +\section{Other Changes and Fixes} |
| 78 | + |
| 79 | + |
| 80 | +% ====================================================================== |
| 81 | +\section{C Interface Changes} |
| 82 | + |
| 83 | +pymalloc is now enabled by default (also mention debug-mode pymalloc) |
| 84 | + |
| 85 | +Memory API reworking |
| 86 | + |
| 87 | +PyObject_DelItemString() added |
| 88 | + |
| 89 | +PyArg_NoArgs macro is now deprecated |
| 90 | + |
| 91 | +Ports: |
| 92 | + |
| 93 | +OS/2 EMX port |
| 94 | + |
| 95 | +MacOS: Weaklink most toolbox modules, improving backward |
| 96 | +compatibility. Modules will no longer fail to load if a single routine |
| 97 | +is missing on the curent OS version, in stead calling the missing |
| 98 | +routine will raise an exception. Should finally fix 531398. 2.2.1 |
| 99 | +candidate. Also blacklisted some constants with definitions that |
| 100 | +were not Python-compatible. |
| 101 | + |
| 102 | +Checked in Sean Reifschneider's RPM spec file and patches. Bugfix candidate. |
15 | 103 |
|
16 | 104 |
|
17 | 105 | %====================================================================== |
18 | 106 | \section{Acknowledgements \label{acks}} |
19 | 107 |
|
| 108 | +The author would like to thank the following people for offering |
| 109 | +suggestions, corrections and assistance with various drafts of this |
| 110 | +article: Fred~L. Drake, Jr. |
20 | 111 |
|
21 | 112 | \end{document} |
| 113 | + |
| 114 | + |
| 115 | + |
0 commit comments