Message405898
Interesting. I think the behaviour of the Python implementation behaviour is actually more correct here: neither `int` nor `float` supports 'N', and I'm not seeing any indication in tests or documentation that 'N' should be supported. So is this a bug in libmpdec, or a missing feature in the Python implementation? (Either way, it's definitely a bug that the two aren't aligned.)
>>> format(123, 'n')
'123'
>>> format(123, 'N')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'N' for object of type 'int' |
|
Date |
User |
Action |
Args |
2021-11-07 10:46:57 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, facundobatista, eric.smith, serhiy.storchaka |
2021-11-07 10:46:57 | mark.dickinson | set | messageid: <1636282017.48.0.584355218376.issue45739@roundup.psfhosted.org> |
2021-11-07 10:46:57 | mark.dickinson | link | issue45739 messages |
2021-11-07 10:46:57 | mark.dickinson | create | |
|