Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2848e07f
Commit
2848e07f
authored
Nov 20, 2002
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add change to int() and OverflowError
Re-order the "porting" section to list items by decreasing significance
parent
dea0d255
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
Doc/whatsnew/whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+19
-9
No files found.
Doc/whatsnew/whatsnew23.tex
View file @
2848e07f
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment