Message394761
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. |
|
Date |
User |
Action |
Args |
2021-05-30 09:20:39 | Sergey.Kirpichev | set | recipients:
+ Sergey.Kirpichev, rhettinger, facundobatista, mark.dickinson |
2021-05-30 09:20:39 | Sergey.Kirpichev | link | issue44267 messages |
2021-05-30 09:20:39 | Sergey.Kirpichev | create | |
|