This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Error in what's new - PEP 515
Type: Stage:
Components: Documentation Versions: Python 3.6
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Pierre Ducroquet, brett.cannon, docs@python
Priority: normal Keywords:

Created on 2016-09-13 07:07 by Pierre Ducroquet, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg276192 - (view) Author: Pierre Ducroquet (Pierre Ducroquet) Date: 2016-09-13 07:07
The what's new section about PEP 515 says :
«With PEP 515, though, you can use underscores to separate digits as desired to make numeric literals easier to read: 1_000_000_000_000_000. Underscores can be used with other numeric literals beyond integers, e.g. 0x_FF_FF_FF_FF.»

As far as I know, 0xFFFFFFFF is 2 ** 32 - 1, an integer.
I think the author meant «beyond decimals»
msg276315 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2016-09-13 18:16
the author meant "integer literals" when he said "integers" which is accurate as the hex literal isn't quite the same (e.g. uses different parse rules, etc.). If you would still like to propose different wording then you can submit a pull request at github.com/python/peps for consideration.
History
Date User Action Args
2022-04-11 14:58:36adminsetgithub: 72303
2016-09-13 18:16:02brett.cannonsetstatus: open -> closed

nosy: + brett.cannon
messages: + msg276315

resolution: third party
2016-09-13 07:07:35Pierre Ducroquetcreate