[issue6871] decimal.py: more format issues

Irit Katriel report at bugs.python.org
Fri Jun 18 19:31:21 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

Issue #2 still exists in 3.11:

>>> format(float(123), "00")
'123.0'
>>> format(Decimal(123), "00")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid format string

----------
nosy: +iritkatriel
versions: +Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue6871>
_______________________________________


More information about the Python-bugs-list mailing list