This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Samuele Santi
Recipients Samuele Santi
Date 2016-09-02.16:31:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472833887.9.0.541510486765.issue27941@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-02 16:31:27Samuele Santisetrecipients: + Samuele Santi
2016-09-02 16:31:27Samuele Santisetmessageid: <1472833887.9.0.541510486765.issue27941@psf.upfronthosting.co.za>
2016-09-02 16:31:27Samuele Santilinkissue27941 messages
2016-09-02 16:31:27Samuele Santicreate