Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in what's new - PEP 515 #72303

Closed
PierreDucroquet mannequin opened this issue Sep 13, 2016 · 2 comments
Closed

Error in what's new - PEP 515 #72303

PierreDucroquet mannequin opened this issue Sep 13, 2016 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@PierreDucroquet
Copy link
Mannequin

PierreDucroquet mannequin commented Sep 13, 2016

BPO 28116
Nosy @brettcannon

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2016-09-13.18:16:02.743>
created_at = <Date 2016-09-13.07:07:35.865>
labels = ['docs']
title = "Error in what's new - PEP\xc2\xa0515"
updated_at = <Date 2016-09-13.18:16:02.741>
user = 'https://bugs.python.org/PierreDucroquet'

bugs.python.org fields:

activity = <Date 2016-09-13.18:16:02.741>
actor = 'brett.cannon'
assignee = 'docs@python'
closed = True
closed_date = <Date 2016-09-13.18:16:02.743>
closer = 'brett.cannon'
components = ['Documentation']
creation = <Date 2016-09-13.07:07:35.865>
creator = 'Pierre Ducroquet'
dependencies = []
files = []
hgrepos = []
issue_num = 28116
keywords = []
message_count = 2.0
messages = ['276192', '276315']
nosy_count = 3.0
nosy_names = ['brett.cannon', 'docs@python', 'Pierre Ducroquet']
pr_nums = []
priority = 'normal'
resolution = 'third party'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue28116'
versions = ['Python 3.6']

@PierreDucroquet
Copy link
Mannequin Author

PierreDucroquet mannequin commented Sep 13, 2016

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»

@PierreDucroquet PierreDucroquet mannequin added the docs Documentation in the Doc dir label Sep 13, 2016
@brettcannon
Copy link
Member

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant