[issue26208] decimal C module's exceptions don't match the Python version

2022-03-02 Thread Constantine Evans
Constantine Evans 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: in

[issue46904] Python Decimal supports '#' format, C Decimal does not.

2022-03-02 Thread Constantine Evans
New submission from Constantine Evans : Decimal as implemented in _pydecimal supports the '#' alternate form in format strings, though this does not appear to be documented: as with floats, it causes a decimal point to be included regardless of value. Decimal as implemented in cdecimal