diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-07 18:04:58 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-07 18:04:58 (GMT) |
commit | 968f1690d39e8c825f9af1b634ff5b5a9517c290 (patch) | |
tree | 83dc220e8505efdf3738039831b8b334738740db /Misc | |
parent | 491ea55f2866cc0b4fee036069fc07748920b0cf (diff) | |
download | cpython-968f1690d39e8c825f9af1b634ff5b5a9517c290.zip cpython-968f1690d39e8c825f9af1b634ff5b5a9517c290.tar.gz cpython-968f1690d39e8c825f9af1b634ff5b5a9517c290.tar.bz2 |
#Issue 6795: Fix infinite recursion in long(Decimal('nan')); change int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -366,6 +366,10 @@ Core and Builtins Library ------- +- Issue #6795: int(Decimal('nan')) now raises ValueError instead of + returning NaN or raising InvalidContext. Also, fix infinite recursion + in long(Decimal('nan')). + - Issue #6850: Fix bug in Decimal._parse_format_specifier for formats with no type specifier. |