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 mark.dickinson
Recipients eric.smith, facundobatista, mark.dickinson, rhettinger, serhiy.storchaka
Date 2021-11-07.10:46:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636282017.48.0.584355218376.issue45739@roundup.psfhosted.org>
In-reply-to
Content
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'
History
Date User Action Args
2021-11-07 10:46:57mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, facundobatista, eric.smith, serhiy.storchaka
2021-11-07 10:46:57mark.dickinsonsetmessageid: <1636282017.48.0.584355218376.issue45739@roundup.psfhosted.org>
2021-11-07 10:46:57mark.dickinsonlinkissue45739 messages
2021-11-07 10:46:57mark.dickinsoncreate