[Python-checkins] python/dist/src/Doc/whatsnew whatsnew23.tex,1.71,1.72
akuchling@users.sourceforge.net
akuchling@users.sourceforge.net
Wed, 20 Nov 2002 05:50:17 -0800
Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1:/tmp/cvs-serv16378
Modified Files:
whatsnew23.tex
Log Message:
Add change to int() and OverflowError
Re-order the "porting" section to list items by decreasing significance
Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** whatsnew23.tex 19 Nov 2002 13:09:00 -0000 1.71
--- whatsnew23.tex 20 Nov 2002 13:50:15 -0000 1.72
***************
*** 789,792 ****
--- 789,798 ----
section~\ref{section-bool} of this document.
+ \item The \function{int()} type constructor will now return a long
+ integer instead of raising an \exception{OverflowError} when a string
+ or floating-point number is too large to fit into an integer. This
+ can lead to the paradoxical result that
+ \code{isinstance(int(\var{expression}), int)} is false, but that seems unlikely to cause problems in practice.
+
\item Built-in types now support the extended slicing syntax,
as described in section~\ref{section-slices} of this document.
***************
*** 1603,1618 ****
variable name in your code, a different name must be chosen.
- \item You can no longer disable assertions by assigning to \code{__debug__}.
-
- \item Using \code{None} as a variable name will now result in a
- \exception{SyntaxWarning} warning.
-
- \item Names of extension types defined by the modules included with
- Python now contain the module and a \character{.} in front of the type
- name.
-
\item For strings \var{X} and \var{Y}, \code{\var{X} in \var{Y}} now works
if \var{X} is more than one character long.
\item The Distutils \function{setup()} function has gained various new
keyword arguments such as \var{depends}. Old versions of the
--- 1609,1621 ----
variable name in your code, a different name must be chosen.
\item For strings \var{X} and \var{Y}, \code{\var{X} in \var{Y}} now works
if \var{X} is more than one character long.
+ \item The \function{int()} type constructor will now return a long
+ integer instead of raising an \exception{OverflowError} when a string
+ or floating-point number is too large to fit into an integer.
+
+ \item You can no longer disable assertions by assigning to \code{__debug__}.
+
\item The Distutils \function{setup()} function has gained various new
keyword arguments such as \var{depends}. Old versions of the
***************
*** 1630,1633 ****
--- 1633,1643 ----
ext = Extension(**kw)
\end{verbatim}
+
+ \item Using \code{None} as a variable name will now result in a
+ \exception{SyntaxWarning} warning.
+
+ \item Names of extension types defined by the modules included with
+ Python now contain the module and a \character{.} in front of the type
+ name.
\end{itemize}