diff options
author | Georg Brandl <georg@python.org> | 2007-12-09 09:04:01 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-12-09 09:04:01 (GMT) |
commit | cc595bd5462a31f42af58eb76aa961f827c34153 (patch) | |
tree | eea585132462361f7303a6674587f2dd974ec0e9 | |
parent | eda9e2b66a793f9ca9dfca6eae5c1c239f4f51cb (diff) | |
download | cpython-cc595bd5462a31f42af58eb76aa961f827c34153.zip cpython-cc595bd5462a31f42af58eb76aa961f827c34153.tar.gz cpython-cc595bd5462a31f42af58eb76aa961f827c34153.tar.bz2 |
#1571: clarify removal of ``L`` suffix from long int repr.
-rw-r--r-- | Doc/whatsnew/3.0.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst index aa7913c..7332f14 100644 --- a/Doc/whatsnew/3.0.rst +++ b/Doc/whatsnew/3.0.rst @@ -143,8 +143,9 @@ changes to rarely used features.) * ``1/2`` returns a float. Use ``1//2`` to get the truncating behavior. -* Code that unconditionally strips the trailing ``L`` from the ``repr()`` - of a long integer will chop off the last digit instead. +* The ``repr()`` of a long integer doesn't include the trailing ``L`` + anymore, so code that unconditionally strips that character will + chop off the last digit instead. Strings and Bytes @@ -242,7 +243,8 @@ language and built-in functions. * PEP 237: ``long`` renamed to ``int``. That is, there is only one 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. |