[Python-Dev] PEP 515: Underscores in Numeric Literals
Georg Brandl
g.brandl at gmx.net
Thu Feb 11 11:57:56 EST 2016
More information about the Python-Dev mailing list
Thu Feb 11 11:57:56 EST 2016
- Previous message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals
- Next message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 02/11/2016 05:52 PM, Steve Dower wrote: > On 11Feb2016 0651, Barry Warsaw wrote: >> On Feb 11, 2016, at 09:22 AM, Georg Brandl wrote: >> >>> based on the feedback so far, I revised the PEP. There is now >>> a much simpler rule for allowed underscores, with no exceptions. >>> This made the grammar simpler as well. >> >> I'd be +1, but there's something missing from the PEP: what the underscores >> *mean*. You describe the syntax nicely, but not the semantics. >> >> From reading the examples, I'd guess that the underscores are semantically >> transparent, meaning that the resulting value is the same if you just removed >> the underscores and interpreted the resulting literal. >> >> Right or wrong, could you please add a paragraph explaining the meaning of the >> underscores? > > Glad I kept reading the thread this far - just pretend I also wrote > exactly the same thing as Barry. D'oh :) I added (hopefully) clarifying wording. Thanks, Georg
- Previous message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals
- Next message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list