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
d81e9a1b
Commit
d81e9a1b
authored
Dec 09, 2007
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1571: clarify removal of ``L`` suffix from long int repr.
parent
e6725386
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Doc/whatsnew/3.0.rst
Doc/whatsnew/3.0.rst
+5
-3
No files found.
Doc/whatsnew/3.0.rst
View file @
d81e9a1b
...
@@ -143,8 +143,9 @@ changes to rarely used features.)
...
@@ -143,8 +143,9 @@ changes to rarely used features.)
* ``1/2`` returns a float. Use ``1//2`` to get the truncating behavior.
* ``1/2`` returns a float. Use ``1//2`` to get the truncating behavior.
* Code that unconditionally strips the trailing ``L`` from the ``repr()``
* The ``repr()`` of a long integer doesn't include the trailing ``L``
of a long integer will chop off the last digit instead.
anymore, so code that unconditionally strips that character will
chop off the last digit instead.
Strings and Bytes
Strings and Bytes
...
@@ -242,7 +243,8 @@ language and built-in functions.
...
@@ -242,7 +243,8 @@ language and built-in functions.
* PEP 237: ``long`` renamed to ``int``. That is, there is only one
* PEP 237: ``long`` renamed to ``int``. That is, there is only one
built-in integral type, named ``int``; but it behaves like the old
built-in integral type, named ``int``; but it behaves like the old
``long`` type.
``long`` type, with the exception that the literal suffix ``L`` is
neither supported by the parser nor produced by ``repr()`` anymore.
* PEP 238: int division returns a float.
* PEP 238: int division returns a float.
...
...
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