[issue8613] Decimal module flags undetermined when a signal is trapped.

Stefan Krah report at bugs.python.org
Wed May 5 14:15:34 CEST 2010


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

I agree that the spec is not unambiguous, but consider the Overflow and
Underflow passages here:

http://speleotrove.com/decimal/daexcep.html

  ==> Overflow

    ==> In all cases, Inexact and Rounded will also be raised.


"Raise" here of course means raising the flags Inexact and Rounded,
not Python exceptions. So I would think that if the overflow trap
handler is engaged, the flags Inexact and Rounded must be raised (set
to 1) in the context.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8613>
_______________________________________


More information about the Python-bugs-list mailing list