Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / amd64 / html / python / whatsnew / node15.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<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>
</head>
<body>
<DIV CLASS="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<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>
</tr></table>
<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>
</div>
<hr /></div>
</DIV>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION0001500000000000000000">
14 Porting to Python 2.4</A>
</H1>
<P>
This section lists previously described changes that may require
changes to your code:
<P>
<UL>
<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.
<P>
</LI>
<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.
<P>
</LI>
<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.
<P>
</LI>
<LI><tt class="function">dircache.listdir()</tt> now passes exceptions to the caller
instead of returning empty lists.
<P>
</LI>
<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.
<P>
</LI>
<LI><tt class="function">fcntl.ioctl</tt> now warns if the <var>mutate</var>
argument is omitted and relevant.
<P>
</LI>
<LI>The <tt class="module">tarfile</tt> module now generates GNU-format tar files
by default.
<P>
</LI>
<LI>Encountering a failure while importing a module no longer leaves
a partially-initialized module object in <code>sys.modules</code>.
<P>
</LI>
<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.
<P>
</LI>
</UL>
<P>
<DIV CLASS="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<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>
</tr></table>
<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>
</div>
</div>
<hr />
<span class="release-info">Release 1.01.</span>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>