[issue26208] decimal C module's exceptions don't match the Python version
Constantine Evans
report at bugs.python.org
Wed Mar 2 18:45:33 EST 2022
Constantine Evans <const at costi.eu> added the comment:
Some other non-matching exceptions are unfriendly, but do not come from libmpdec and could be made to match without, I think, causing problems. For example:
>>> format(_decimal.Decimal(1), "invalid")
...
ValueError: invalid format string
>>> format(_pydecimal.Decimal(1), "invalid")
...
ValueError: Invalid format specifier: invalid
Would it make sense to make a patch to make these match?
----------
nosy: +const
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26208>
_______________________________________
More information about the Python-bugs-list
mailing list