diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2012-11-15 20:58:40 (GMT) |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2012-11-15 20:58:40 (GMT) |
commit | 73726aac0fada5a94587fde7ba48aa0699e59bc9 (patch) | |
tree | dacb5e2d6942f7668019ed1242727e24c3624bd7 /Misc | |
parent | 8f7c4b8a8551702a9f718098b6b3eea2e8d88bb0 (diff) | |
download | cpython-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/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(). |