diff options
author | Elias Zamaria <mikez302@gmail.com> | 2018-08-27 06:59:28 (GMT) |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2018-08-27 06:59:28 (GMT) |
commit | 393f1ff62e032f20adaed2613a9e2d2d6bcb1eb3 (patch) | |
tree | 4fa1002c40971a5352722a49a64ed1ae1415f40a /Misc/ACKS | |
parent | 74734f73ca3cdb48d4d51139512b6828c2734252 (diff) | |
download | cpython-393f1ff62e032f20adaed2613a9e2d2d6bcb1eb3.zip cpython-393f1ff62e032f20adaed2613a9e2d2d6bcb1eb3.tar.gz cpython-393f1ff62e032f20adaed2613a9e2d2d6bcb1eb3.tar.bz2 |
bpo-32968: Make modulo and floor division involving Fraction and float consistent with other operations (#5956)
Make mixed-type `%` and `//` operations involving `Fraction` and `float` objects behave like all other mixed-type arithmetic operations: first the `Fraction` object is converted to a `float`, then the `float` operation is performed as normal. This fixes some surprising corner cases, like `Fraction('1/3') % inf` giving a NaN.
Thanks Elias Zamaria for the patch.
Diffstat (limited to 'Misc/ACKS')
-rw-r--r-- | Misc/ACKS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1814,6 +1814,7 @@ Masazumi Yoshikawa Arnaud Ysmal Bernard Yue Moshe Zadka +Elias Zamaria Milan Zamazal Artur Zaprzala Mike Zarnstorff |