Message274254
Looks like, on some occasions, running ``Decimal('garbage')`` on Python 3.x decimal raises this error:
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
instead of the usual:
decimal.InvalidOperation: Invalid literal for Decimal: 'garbage'
This seems to be caused by the built-in decimal module on 3.x, while it's just fine with decimal.py / _pydecimal.py (eg. the system Python on Archlinux).
I'm attaching the output from a few tests I made against different interpreters. |
|
Date |
User |
Action |
Args |
2016-09-02 16:31:27 | Samuele Santi | set | recipients:
+ Samuele Santi |
2016-09-02 16:31:27 | Samuele Santi | set | messageid: <1472833887.9.0.541510486765.issue27941@psf.upfronthosting.co.za> |
2016-09-02 16:31:27 | Samuele Santi | link | issue27941 messages |
2016-09-02 16:31:27 | Samuele Santi | create | |
|