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 skrah
Recipients mark.dickinson, pekka.klarck, petr.viktorin, rhettinger, skrah
Date 2018-09-06.14:43:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536245027.74.0.56676864532.issue26208@psf.upfronthosting.co.za>
In-reply-to
Content
pypy3 actually took over the terse exceptions, but without the conditions.  They'd also need error codes from libmpdec now.

>>>> huge = Decimal('9' * 99)
>>>> huge.quantize(Decimal('0.1'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/stefan/tmp/pypy3-v6.0.0-linux64/lib_pypy/_decimal.py", line 842, in quantize
    workctx._ctx, status_ptr)
  File "/home/stefan/tmp/pypy3-v6.0.0-linux64/lib_pypy/_decimal.py", line 1631, in __exit__
    self.context._add_status(status)
  File "/home/stefan/tmp/pypy3-v6.0.0-linux64/lib_pypy/_decimal.py", line 1263, in _add_status
    raise exception
decimal.InvalidOperation
History
Date User Action Args
2018-09-06 14:43:47skrahsetrecipients: + skrah, rhettinger, mark.dickinson, petr.viktorin, pekka.klarck
2018-09-06 14:43:47skrahsetmessageid: <1536245027.74.0.56676864532.issue26208@psf.upfronthosting.co.za>
2018-09-06 14:43:47skrahlinkissue26208 messages
2018-09-06 14:43:47skrahcreate