Sergey B Kirpichev <skirpic...@gmail.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44267> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com