[issue27941] Bad error message from Decimal('garbage') across the py3 range

2016-09-02 Thread Stefan Krah
Stefan Krah added the comment: Hardly a bad error message, but see #26208. -- nosy: +skrah resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> decimal C module's exceptions don't match the Python version type: behavior -> enhancement

[issue27941] Bad error message from Decimal('garbage') across the py3 range

2016-09-02 Thread Samuele Santi
New submission from Samuele Santi: Looks like, on some occasions, running ``Decimal('garbage')`` on Python 3.x decimal raises this error: decimal.InvalidOperation: [] instead of the usual: decimal.InvalidOperation: Invalid literal for Decimal: 'garbage' This seems to be caused by th