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.

Author Sergey.Kirpichev
Recipients Sergey.Kirpichev, facundobatista, mark.dickinson, rhettinger
Date 2021-05-30.09:20:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <YLNY4tPgxL43s8JJ@note>
In-reply-to <1622365136.8.0.246943944419.issue44267@roundup.psfhosted.org>
Content
On Sun, May 30, 2021 at 08:58:56AM +0000, Mark Dickinson wrote:
> Yep, you're absolutely right. I should have said "after the PEP is final"

Unfortunately, neither correction can fix that the PEP does not
"accurately describes the state of the implementation at the point where
it is marked Final."

> It would also be a backwards incompatible change at this point to
> start refusing strings that were previously accepted.

I'm not sure...

Well, it's not so clear which strings are accepted previously (i.e.
what's was documented).  PEP 515 claims one.  The docs says something
different:
---->8---
If value is a string, it should conform to the decimal numeric string
syntax after leading and trailing whitespace characters, as well as
underscores throughout, are removed
---->8-------

and
--->8------
Underscores are allowed for grouping, _as with integral and
floating-point literals in code_.
-->8-------

The 1-st sentence doesn't specify the way underscores are removed.  And
given the 2-nd sentence: it's clearly can't be like the current
behaviour of the Decimal constructor.
History
Date User Action Args
2021-05-30 09:20:39Sergey.Kirpichevsetrecipients: + Sergey.Kirpichev, rhettinger, facundobatista, mark.dickinson
2021-05-30 09:20:39Sergey.Kirpichevlinkissue44267 messages
2021-05-30 09:20:39Sergey.Kirpichevcreate