Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | <html> | |
3 | <head> | |
4 | <link rel="STYLESHEET" href="whatsnew24.css" type='text/css' /> | |
5 | <link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /> | |
6 | <link rel='start' href='../index.html' title='Python Documentation Index' /> | |
7 | <link rel="first" href="whatsnew24.html" title='What's New in Python 2.4' /> | |
8 | <link rel='contents' href='contents.html' title="Contents" /> | |
9 | <link rel='last' href='about.html' title='About this document...' /> | |
10 | <link rel='help' href='about.html' title='About this document...' /> | |
11 | <link rel="next" href="node2.html" /> | |
12 | <link rel="prev" href="whatsnew24.html" /> | |
13 | <link rel="parent" href="whatsnew24.html" /> | |
14 | <link rel="next" href="node2.html" /> | |
15 | <meta name='aesop' content='information' /> | |
16 | <title>Contents</title> | |
17 | </head> | |
18 | <body> | |
19 | <DIV CLASS="navigation"> | |
20 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> | |
21 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
22 | <tr> | |
23 | <td class='online-navigation'><a rel="prev" title="What's New in Python" | |
24 | href="whatsnew24.html"><img src='../icons/previous.png' | |
25 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
26 | <td class='online-navigation'><a rel="parent" title="What's New in Python" | |
27 | href="whatsnew24.html"><img src='../icons/up.png' | |
28 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
29 | <td class='online-navigation'><a rel="next" title="1 PEP 218: Built-In" | |
30 | href="node2.html"><img src='../icons/next.png' | |
31 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
32 | <td align="center" width="100%">What's New in Python 2.4</td> | |
33 | <td class='online-navigation'><img src='../icons/blank.png' | |
34 | border='0' height='32' alt='' width='32' /></td> | |
35 | <td class='online-navigation'><img src='../icons/blank.png' | |
36 | border='0' height='32' alt='' width='32' /></td> | |
37 | <td class='online-navigation'><img src='../icons/blank.png' | |
38 | border='0' height='32' alt='' width='32' /></td> | |
39 | </tr></table> | |
40 | <div class='online-navigation'> | |
41 | <b class="navlabel">Previous:</b> | |
42 | <a class="sectref" rel="prev" href="whatsnew24.html">What's New in Python</A> | |
43 | <b class="navlabel">Up:</b> | |
44 | <a class="sectref" rel="parent" href="whatsnew24.html">What's New in Python</A> | |
45 | <b class="navlabel">Next:</b> | |
46 | <a class="sectref" rel="next" href="node2.html">1 PEP 218: Built-In</A> | |
47 | </div> | |
48 | <hr /></div> | |
49 | </DIV> | |
50 | <!--End of Navigation Panel--> | |
51 | <BR><h2><A NAME="SECTION000100000000000000000"> | |
52 | Contents</A> | |
53 | </h2> | |
54 | <!--Table of Contents--> | |
55 | ||
56 | <UL CLASS="TofC"> | |
57 | <LI><A href="node2.html">1 PEP 218: Built-In Set Objects</a> | |
58 | <LI><A href="node3.html">2 PEP 237: Unifying Long Integers and Integers</a> | |
59 | <LI><A href="node4.html">3 PEP 289: Generator Expressions</a> | |
60 | <LI><A href="node5.html">4 PEP 292: Simpler String Substitutions</a> | |
61 | <LI><A href="node6.html">5 PEP 318: Decorators for Functions and Methods</a> | |
62 | <LI><A href="node7.html">6 PEP 322: Reverse Iteration</a> | |
63 | <LI><A href="node8.html">7 PEP 324: New subprocess Module</a> | |
64 | <LI><A href="node9.html">8 PEP 327: Decimal Data Type</a> | |
65 | <UL> | |
66 | <LI><A href="node9.html#SECTION000910000000000000000">8.1 Why is Decimal needed?</a> | |
67 | <LI><A href="node9.html#SECTION000920000000000000000">8.2 The Decimal type</a> | |
68 | <LI><A href="node9.html#SECTION000930000000000000000">8.3 The Context type</a> | |
69 | </ul> | |
70 | <LI><A href="node10.html">9 PEP 328: Multi-line Imports</a> | |
71 | <LI><A href="node11.html">10 PEP 331: Locale-Independent Float/String Conversions</a> | |
72 | <LI><A href="node12.html">11 Other Language Changes</a> | |
73 | <UL> | |
74 | <LI><A href="node12.html#SECTION0001210000000000000000">11.1 Optimizations</a> | |
75 | </ul> | |
76 | <LI><A href="node13.html">12 New, Improved, and Deprecated Modules</a> | |
77 | <UL> | |
78 | <LI><A href="node13.html#SECTION0001310000000000000000">12.1 cookielib</a> | |
79 | <LI><A href="node13.html#SECTION0001320000000000000000">12.2 doctest</a> | |
80 | </ul> | |
81 | <LI><A href="node14.html">13 Build and C API Changes</a> | |
82 | <UL> | |
83 | <LI><A href="node14.html#SECTION0001410000000000000000">13.1 Port-Specific Changes</a> | |
84 | </ul> | |
85 | <LI><A href="node15.html">14 Porting to Python 2.4</a> | |
86 | <LI><A href="acks.html">15 Acknowledgements</a> | |
87 | </ul> | |
88 | <!--End of Table of Contents--> | |
89 | <P> | |
90 | This article explains the new features in Python 2.4, released in December | |
91 | 2004. | |
92 | ||
93 | <P> | |
94 | Python 2.4 is a medium-sized release. It doesn't introduce as many | |
95 | changes as the radical Python 2.2, but introduces more features than | |
96 | the conservative 2.3 release. The most significant new language | |
97 | features are function decorators and generator expressions; most other | |
98 | changes are to the standard library. | |
99 | ||
100 | <P> | |
101 | According to the CVS change logs, there were 481 patches applied and | |
102 | 502 bugs fixed between Python 2.3 and 2.4. Both figures are likely to | |
103 | be underestimates. | |
104 | ||
105 | <P> | |
106 | This article doesn't attempt to provide a complete specification of | |
107 | every single new feature, but instead provides a brief introduction to | |
108 | each feature. For full details, you should refer to the documentation | |
109 | for Python 2.4, such as the <em class="citetitle"><a | |
110 | href="../lib/lib.html" | |
111 | title="Python Library | |
112 | Reference" | |
113 | >Python Library | |
114 | Reference</a></em> and the <em class="citetitle"><a | |
115 | href="../ref/ref.html" | |
116 | title="Python Reference | |
117 | Manual" | |
118 | >Python Reference | |
119 | Manual</a></em>. Often you will be referred to the PEP for a particular new | |
120 | feature for explanations of the implementation and design rationale. | |
121 | ||
122 | <P> | |
123 | ||
124 | <DIV CLASS="navigation"> | |
125 | <div class='online-navigation'> | |
126 | <p></p><hr /> | |
127 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
128 | <tr> | |
129 | <td class='online-navigation'><a rel="prev" title="What's New in Python" | |
130 | href="whatsnew24.html"><img src='../icons/previous.png' | |
131 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
132 | <td class='online-navigation'><a rel="parent" title="What's New in Python" | |
133 | href="whatsnew24.html"><img src='../icons/up.png' | |
134 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
135 | <td class='online-navigation'><a rel="next" title="1 PEP 218: Built-In" | |
136 | href="node2.html"><img src='../icons/next.png' | |
137 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
138 | <td align="center" width="100%">What's New in Python 2.4</td> | |
139 | <td class='online-navigation'><img src='../icons/blank.png' | |
140 | border='0' height='32' alt='' width='32' /></td> | |
141 | <td class='online-navigation'><img src='../icons/blank.png' | |
142 | border='0' height='32' alt='' width='32' /></td> | |
143 | <td class='online-navigation'><img src='../icons/blank.png' | |
144 | border='0' height='32' alt='' width='32' /></td> | |
145 | </tr></table> | |
146 | <div class='online-navigation'> | |
147 | <b class="navlabel">Previous:</b> | |
148 | <a class="sectref" rel="prev" href="whatsnew24.html">What's New in Python</A> | |
149 | <b class="navlabel">Up:</b> | |
150 | <a class="sectref" rel="parent" href="whatsnew24.html">What's New in Python</A> | |
151 | <b class="navlabel">Next:</b> | |
152 | <a class="sectref" rel="next" href="node2.html">1 PEP 218: Built-In</A> | |
153 | </div> | |
154 | </div> | |
155 | <hr /> | |
156 | <span class="release-info">Release 1.01.</span> | |
157 | </DIV> | |
158 | <!--End of Navigation Panel--> | |
159 | <ADDRESS> | |
160 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
161 | </ADDRESS> | |
162 | </BODY> | |
163 | </HTML> |