diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2002-11-20 13:50:15 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2002-11-20 13:50:15 (GMT) |
commit | 495172c3b4b650a230b5bd4b3f97002de7da1819 (patch) | |
tree | 35c80eec1bdafc7921ce13c795a7ba07bfb14028 /Doc/whatsnew | |
parent | db951c34e333d5b9d20fcb2e9cf54a599ba7d15a (diff) | |
download | cpython-495172c3b4b650a230b5bd4b3f97002de7da1819.zip cpython-495172c3b4b650a230b5bd4b3f97002de7da1819.tar.gz cpython-495172c3b4b650a230b5bd4b3f97002de7da1819.tar.bz2 |
Add change to int() and OverflowError
Re-order the "porting" section to list items by decreasing significance
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew23.tex | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/Doc/whatsnew/whatsnew23.tex b/Doc/whatsnew/whatsnew23.tex index 3c25238..2751955 100644 --- a/Doc/whatsnew/whatsnew23.tex +++ b/Doc/whatsnew/whatsnew23.tex @@ -788,6 +788,12 @@ document. added along with the built-in \class{bool} type, as described in 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. @@ -1602,18 +1608,15 @@ This section lists changes that may actually require changes to your code: \item \keyword{yield} is now always a keyword; if it's used as a 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 \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 Distutils will abort if passed unknown keywords. The fix is to check @@ -1630,6 +1633,13 @@ if hasattr(core, 'get_distutil_options'): 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} |