[issue28116] Error in what's new - PEP 515

2016-09-13 Thread Pierre Ducroquet

New submission from Pierre Ducroquet:

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, 0x is 2 ** 32 - 1, an integer.
I think the author meant «beyond decimals»

--
assignee: docs@python
components: Documentation
messages: 276192
nosy: Pierre Ducroquet, docs@python
priority: normal
severity: normal
status: open
title: Error in what's new - PEP 515
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28116] Error in what's new - PEP 515

2016-09-13 Thread Brett Cannon

Brett Cannon added the comment:

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.

--
nosy: +brett.cannon
resolution:  -> third party
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com