| 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="acks.html" /> |
| 12 | <link rel="prev" href="node14.html" /> |
| 13 | <link rel="parent" href="whatsnew24.html" /> |
| 14 | <link rel="next" href="acks.html" /> |
| 15 | <meta name='aesop' content='information' /> |
| 16 | <title>14 Porting to Python 2.4</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="13 Build and C" |
| 24 | href="node14.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="15 Acknowledgements" |
| 30 | href="acks.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'><a rel="contents" title="Table of Contents" |
| 34 | href="contents.html"><img src='../icons/contents.png' |
| 35 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 36 | <td class='online-navigation'><img src='../icons/blank.png' |
| 37 | border='0' height='32' alt='' width='32' /></td> |
| 38 | <td class='online-navigation'><img src='../icons/blank.png' |
| 39 | border='0' height='32' alt='' width='32' /></td> |
| 40 | </tr></table> |
| 41 | <div class='online-navigation'> |
| 42 | <b class="navlabel">Previous:</b> |
| 43 | <a class="sectref" rel="prev" href="node14.html">13 Build and C</A> |
| 44 | <b class="navlabel">Up:</b> |
| 45 | <a class="sectref" rel="parent" href="whatsnew24.html">What's New in Python</A> |
| 46 | <b class="navlabel">Next:</b> |
| 47 | <a class="sectref" rel="next" href="acks.html">15 Acknowledgements</A> |
| 48 | </div> |
| 49 | <hr /></div> |
| 50 | </DIV> |
| 51 | <!--End of Navigation Panel--> |
| 52 | |
| 53 | <H1><A NAME="SECTION0001500000000000000000"> |
| 54 | 14 Porting to Python 2.4</A> |
| 55 | </H1> |
| 56 | |
| 57 | <P> |
| 58 | This section lists previously described changes that may require |
| 59 | changes to your code: |
| 60 | |
| 61 | <P> |
| 62 | |
| 63 | <UL> |
| 64 | <LI>Left shifts and hexadecimal/octal constants that are too |
| 65 | large no longer trigger a <tt class="exception">FutureWarning</tt> and return |
| 66 | a value limited to 32 or 64 bits; instead they return a long integer. |
| 67 | |
| 68 | <P> |
| 69 | </LI> |
| 70 | <LI>Integer operations will no longer trigger an <tt class="exception">OverflowWarning</tt>. |
| 71 | The <tt class="exception">OverflowWarning</tt> warning will disappear in Python 2.5. |
| 72 | |
| 73 | <P> |
| 74 | </LI> |
| 75 | <LI>The <tt class="function">zip()</tt> built-in function and <tt class="function">itertools.izip()</tt> |
| 76 | now return an empty list instead of raising a <tt class="exception">TypeError</tt> |
| 77 | exception if called with no arguments. |
| 78 | |
| 79 | <P> |
| 80 | </LI> |
| 81 | <LI><tt class="function">dircache.listdir()</tt> now passes exceptions to the caller |
| 82 | instead of returning empty lists. |
| 83 | |
| 84 | <P> |
| 85 | </LI> |
| 86 | <LI><tt class="function">LexicalHandler.startDTD()</tt> used to receive the public and |
| 87 | system IDs in the wrong order. This has been corrected; applications |
| 88 | relying on the wrong order need to be fixed. |
| 89 | |
| 90 | <P> |
| 91 | </LI> |
| 92 | <LI><tt class="function">fcntl.ioctl</tt> now warns if the <var>mutate</var> |
| 93 | argument is omitted and relevant. |
| 94 | |
| 95 | <P> |
| 96 | </LI> |
| 97 | <LI>The <tt class="module">tarfile</tt> module now generates GNU-format tar files |
| 98 | by default. |
| 99 | |
| 100 | <P> |
| 101 | </LI> |
| 102 | <LI>Encountering a failure while importing a module no longer leaves |
| 103 | a partially-initialized module object in <code>sys.modules</code>. |
| 104 | |
| 105 | <P> |
| 106 | </LI> |
| 107 | <LI><tt class="constant">None</tt> is now a constant; code that binds a new value to |
| 108 | the name "<tt class="samp">None</tt>" is now a syntax error. |
| 109 | |
| 110 | <P> |
| 111 | </LI> |
| 112 | </UL> |
| 113 | |
| 114 | <P> |
| 115 | |
| 116 | <DIV CLASS="navigation"> |
| 117 | <div class='online-navigation'> |
| 118 | <p></p><hr /> |
| 119 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 120 | <tr> |
| 121 | <td class='online-navigation'><a rel="prev" title="13 Build and C" |
| 122 | href="node14.html"><img src='../icons/previous.png' |
| 123 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 124 | <td class='online-navigation'><a rel="parent" title="What's New in Python" |
| 125 | href="whatsnew24.html"><img src='../icons/up.png' |
| 126 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 127 | <td class='online-navigation'><a rel="next" title="15 Acknowledgements" |
| 128 | href="acks.html"><img src='../icons/next.png' |
| 129 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 130 | <td align="center" width="100%">What's New in Python 2.4</td> |
| 131 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 132 | href="contents.html"><img src='../icons/contents.png' |
| 133 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 134 | <td class='online-navigation'><img src='../icons/blank.png' |
| 135 | border='0' height='32' alt='' width='32' /></td> |
| 136 | <td class='online-navigation'><img src='../icons/blank.png' |
| 137 | border='0' height='32' alt='' width='32' /></td> |
| 138 | </tr></table> |
| 139 | <div class='online-navigation'> |
| 140 | <b class="navlabel">Previous:</b> |
| 141 | <a class="sectref" rel="prev" href="node14.html">13 Build and C</A> |
| 142 | <b class="navlabel">Up:</b> |
| 143 | <a class="sectref" rel="parent" href="whatsnew24.html">What's New in Python</A> |
| 144 | <b class="navlabel">Next:</b> |
| 145 | <a class="sectref" rel="next" href="acks.html">15 Acknowledgements</A> |
| 146 | </div> |
| 147 | </div> |
| 148 | <hr /> |
| 149 | <span class="release-info">Release 1.01.</span> |
| 150 | </DIV> |
| 151 | <!--End of Navigation Panel--> |
| 152 | <ADDRESS> |
| 153 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. |
| 154 | </ADDRESS> |
| 155 | </BODY> |
| 156 | </HTML> |