Message387618
str(Decimal("0.00000001")) always returns "1E-8" and there is no way to directly get the "0.00000001" string back without writting custom method for converting DecimalTuple to string. This is caused by arbitrary choice of `and leftdigits > -6` condition in https://github.com/python/cpython/blob/master/Lib/_pydecimal.py#L1052 .
The hardcoded value of -6 should be parametrizable. This can be done by adding it as argument to the __str__ method or maybe by adding it to the decimal context. |
|
Date |
User |
Action |
Args |
2021-02-24 10:59:48 | sim1234 | set | recipients:
+ sim1234 |
2021-02-24 10:59:48 | sim1234 | set | messageid: <1614164388.53.0.057673280167.issue43315@roundup.psfhosted.org> |
2021-02-24 10:59:48 | sim1234 | link | issue43315 messages |
2021-02-24 10:59:47 | sim1234 | create | |
|