diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-05-04 14:25:50 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-05-04 14:25:50 (GMT) |
commit | 4f96f5ffc6dd0b171bb14666d134af84ae307752 (patch) | |
tree | 2bef593e0910acdc4be51ccd21ae5fa9c6b02806 /Misc | |
parent | 712021991849257ed1162368b0a31bb008412636 (diff) | |
download | cpython-4f96f5ffc6dd0b171bb14666d134af84ae307752.zip cpython-4f96f5ffc6dd0b171bb14666d134af84ae307752.tar.gz cpython-4f96f5ffc6dd0b171bb14666d134af84ae307752.tar.bz2 |
Issue #8567: Fix incorrect precedence of signals in Decimal module.
When a Decimal operation raises multiple signals and more than one of
those signals is trapped, the specification determines the order in
which the signals should be handled. In many cases this order wasn't
being followed, leading to the wrong Python exception being raised.
This commit fixes those cases, and adds extra tests. The tests are
only enabled when EXTENDEDERRORTESTS is True, since they involve
rerunning each Decimal testcase several times.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -33,6 +33,12 @@ Core and Builtins Library ------- +- Issue #8567: Fix precedence of signals in Decimal module: when a + Decimal operation raises multiple signals and more than one of those + signals is trapped, the specification determines the order in which + the signals should be handled. In many cases this order wasn't + being followed, leading to the wrong Python exception being raised. + - Issue #7865: The close() method of :mod:`io` objects should not swallow exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon. |