summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-07-04 01:44:04 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-07-04 01:44:04 (GMT)
commitd4be86cb0907cc85861a7c8087698964c403ae2a (patch)
tree74c8a4b93d580c095fd82ca40030f1e481f3eba2 /Doc/whatsnew
parentc8f8a814e2254e2999344335e5f46dc104599ec1 (diff)
downloadcpython-d4be86cb0907cc85861a7c8087698964c403ae2a.zip
cpython-d4be86cb0907cc85861a7c8087698964c403ae2a.tar.gz
cpython-d4be86cb0907cc85861a7c8087698964c403ae2a.tar.bz2
Write another section
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/whatsnew24.tex20
1 files changed, 19 insertions, 1 deletions
diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex
index 6482cb0..dfe509d 100644
--- a/Doc/whatsnew/whatsnew24.tex
+++ b/Doc/whatsnew/whatsnew24.tex
@@ -90,7 +90,25 @@ Greg Wilson and ultimately implemented by Raymond Hettinger.}
%======================================================================
\section{PEP 237: Unifying Long Integers and Integers}
-XXX write this.
+The lengthy transition process for the PEP, begun with Python 2.2,
+takes another step forward in Python 2.4. In 2.3, certain integer
+operations that would behave differently after int/long unification
+triggered \exception{FutureWarning} warnings and returned values
+limited to 32 or 64 bits. In 2.4, these expressions no longer produce
+a warning, but they now produce a different value that's a long
+integer.
+
+The problematic expressions are primarily left shifts and lengthy
+hexadecimal and octal constants. For example, \code{2 << 32} is one
+expression that results in a warning in 2.3, evaluating to 0 on 32-bit
+platforms. In Python 2.4, this expression now returns 8589934592.
+
+
+\begin{seealso}
+\seepep{237}{Unifying Long Integers and Integers}{Original PEP
+written by Moshe Zadka and Gvr. The changes for 2.4 were implemented by
+Kalle Svensson.}
+\end{seealso}
%======================================================================
\section{PEP 289: Generator Expressions}