summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-09-07 18:04:58 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-09-07 18:04:58 (GMT)
commit968f1690d39e8c825f9af1b634ff5b5a9517c290 (patch)
tree83dc220e8505efdf3738039831b8b334738740db /Misc
parent491ea55f2866cc0b4fee036069fc07748920b0cf (diff)
downloadcpython-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/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index fe281cf..daea539 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.