<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
<link rel=
"STYLESHEET" href=
"whatsnew24.css" type='text/css'
/>
<link rel=
"SHORTCUT ICON" href=
"../icons/pyfav.png" type=
"image/png" />
<link rel='start' href='../index.html' title='Python Documentation Index'
/>
<link rel=
"first" href=
"whatsnew24.html" title='What's New in Python
2.4'
/>
<link rel='contents' href='contents.html'
title=
"Contents" />
<link rel='last' href='about.html' title='About this document...'
/>
<link rel='help' href='about.html' title='About this document...'
/>
<link rel=
"next" href=
"acks.html" />
<link rel=
"prev" href=
"node14.html" />
<link rel=
"parent" href=
"whatsnew24.html" />
<link rel=
"next" href=
"acks.html" />
<meta name='aesop' content='information'
/>
<title>14 Porting to Python
2.4</title>
<div id='top-navigation-panel' xml:id='top-navigation-panel'
>
<table align=
"center" width=
"100%" cellpadding=
"0" cellspacing=
"2">
<td class='online-navigation'
><a rel=
"prev" title=
"13 Build and C"
href=
"node14.html"><img src='../icons/previous.png'
border='
0' height='
32' alt='Previous Page' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"parent" title=
"What's New in Python"
href=
"whatsnew24.html"><img src='../icons/up.png'
border='
0' height='
32' alt='Up One Level' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"next" title=
"15 Acknowledgements"
href=
"acks.html"><img src='../icons/next.png'
border='
0' height='
32' alt='Next Page' width='
32'
/></A></td>
<td align=
"center" width=
"100%">What's New in Python
2.4</td>
<td class='online-navigation'
><a rel=
"contents" title=
"Table of Contents"
href=
"contents.html"><img src='../icons/contents.png'
border='
0' height='
32' alt='Contents' width='
32'
/></A></td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<div class='online-navigation'
>
<b class=
"navlabel">Previous:
</b>
<a class=
"sectref" rel=
"prev" href=
"node14.html">13 Build and C
</A>
<b class=
"navlabel">Up:
</b>
<a class=
"sectref" rel=
"parent" href=
"whatsnew24.html">What's New in Python
</A>
<b class=
"navlabel">Next:
</b>
<a class=
"sectref" rel=
"next" href=
"acks.html">15 Acknowledgements
</A>
<!--End of Navigation Panel-->
<H1><A NAME=
"SECTION0001500000000000000000">
14 Porting to Python
2.4</A>
This section lists previously described changes that may require
<LI>Left shifts and hexadecimal/octal constants that are too
large no longer trigger a
<tt class=
"exception">FutureWarning
</tt> and return
a value limited to
32 or
64 bits; instead they return a long integer.
<LI>Integer operations will no longer trigger an
<tt class=
"exception">OverflowWarning
</tt>.
The
<tt class=
"exception">OverflowWarning
</tt> warning will disappear in Python
2.5.
<LI>The
<tt class=
"function">zip()
</tt> built-in function and
<tt class=
"function">itertools.izip()
</tt>
now return an empty list instead of raising a
<tt class=
"exception">TypeError
</tt>
exception if called with no arguments.
<LI><tt class=
"function">dircache.listdir()
</tt> now passes exceptions to the caller
instead of returning empty lists.
<LI><tt class=
"function">LexicalHandler.startDTD()
</tt> used to receive the public and
system IDs in the wrong order. This has been corrected; applications
relying on the wrong order need to be fixed.
<LI><tt class=
"function">fcntl.ioctl
</tt> now warns if the
<var>mutate
</var>
argument is omitted and relevant.
<LI>The
<tt class=
"module">tarfile
</tt> module now generates GNU-format tar files
<LI>Encountering a failure while importing a module no longer leaves
a partially-initialized module object in
<code>sys.modules
</code>.
<LI><tt class=
"constant">None
</tt> is now a constant; code that binds a new value to
the name
"<tt class="samp
">None</tt>" is now a syntax error.
<div class='online-navigation'
>
<table align=
"center" width=
"100%" cellpadding=
"0" cellspacing=
"2">
<td class='online-navigation'
><a rel=
"prev" title=
"13 Build and C"
href=
"node14.html"><img src='../icons/previous.png'
border='
0' height='
32' alt='Previous Page' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"parent" title=
"What's New in Python"
href=
"whatsnew24.html"><img src='../icons/up.png'
border='
0' height='
32' alt='Up One Level' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"next" title=
"15 Acknowledgements"
href=
"acks.html"><img src='../icons/next.png'
border='
0' height='
32' alt='Next Page' width='
32'
/></A></td>
<td align=
"center" width=
"100%">What's New in Python
2.4</td>
<td class='online-navigation'
><a rel=
"contents" title=
"Table of Contents"
href=
"contents.html"><img src='../icons/contents.png'
border='
0' height='
32' alt='Contents' width='
32'
/></A></td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<div class='online-navigation'
>
<b class=
"navlabel">Previous:
</b>
<a class=
"sectref" rel=
"prev" href=
"node14.html">13 Build and C
</A>
<b class=
"navlabel">Up:
</b>
<a class=
"sectref" rel=
"parent" href=
"whatsnew24.html">What's New in Python
</A>
<b class=
"navlabel">Next:
</b>
<a class=
"sectref" rel=
"next" href=
"acks.html">15 Acknowledgements
</A>
<span class=
"release-info">Release
1.01.
</span>
<!--End of Navigation Panel-->
See
<i><a href=
"about.html">About this document...
</a></i> for information on suggesting changes.