summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-11-15 20:58:40 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2012-11-15 20:58:40 (GMT)
commit73726aac0fada5a94587fde7ba48aa0699e59bc9 (patch)
treedacb5e2d6942f7668019ed1242727e24c3624bd7 /Misc
parent8f7c4b8a8551702a9f718098b6b3eea2e8d88bb0 (diff)
downloadcpython-73726aac0fada5a94587fde7ba48aa0699e59bc9.zip
cpython-73726aac0fada5a94587fde7ba48aa0699e59bc9.tar.gz
cpython-73726aac0fada5a94587fde7ba48aa0699e59bc9.tar.bz2
Issue #16469: Fraction(float('nan')) and Fraction(float('inf')) now raise ValueError and OverflowError (resp.), not TypeError.
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 7ffbd7b..10e2d63 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -127,6 +127,10 @@ Core and Builtins
Library
-------
+- Issue #16469: Fix exceptions from float -> Fraction and Decimal -> Fraction
+ conversions for special values to be consistent with those for float -> int
+ and Decimal -> int. Patch by Alexey Kachayev.
+
- Issue #16481: multiprocessing no longer leaks process handles on Windows.
- Issue #12428: Add a pure Python implementation of functools.partial().