[Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)
Guido van Rossum
guido at python.org
Sat Mar 19 12:53:35 EDT 2016
More information about the Python-Dev mailing list
Sat Mar 19 12:53:35 EDT 2016
- Previous message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)
- Next message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I don't care too much either way, but I think passing underscores to the constructor shouldn't be affected by the context -- the underscores are just removed before parsing the number. But if it's too complicated to implement I'm fine with punting. --Guido (mobile) On Mar 19, 2016 6:24 AM, "Nick Coghlan" <ncoghlan at gmail.com> wrote: > On 19 March 2016 at 16:44, Georg Brandl <g.brandl at gmx.net> wrote: > > On the other hand, assuming decimal literals are introduced at some > > point, they would almost definitely need to support underscores. > > Of course, the decision whether to modify the Decimal constructor > > can be postponed until that time. > > The idea of Decimal literals is complicated significantly by their > current context dependent behaviour (especially when it comes to > rounding), so I'd suggest leaving them alone in the context of this > PEP. > > Cheers, > Nick. > > -- > Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/guido%40python.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160319/200481d7/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)
- Next message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list