• Elias Zamaria's avatar
    bpo-32968: Make modulo and floor division involving Fraction and float… · 393f1ff6
    Elias Zamaria yazdı
    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.
    393f1ff6
Adı
Son kayıt (commit)
Son güncelleme
..
next Loading commit data...
3.5.0.rst Loading commit data...
3.5.0a1.rst Loading commit data...
3.5.0a2.rst Loading commit data...
3.5.0a3.rst Loading commit data...
3.5.0a4.rst Loading commit data...
3.5.0b1.rst Loading commit data...
3.5.0b2.rst Loading commit data...
3.5.0b3.rst Loading commit data...
3.5.0b4.rst Loading commit data...
3.5.0rc1.rst Loading commit data...
3.5.0rc2.rst Loading commit data...
3.5.0rc3.rst Loading commit data...
3.5.0rc4.rst Loading commit data...
3.5.1.rst Loading commit data...
3.5.1rc1.rst Loading commit data...
3.5.2.rst Loading commit data...
3.5.2rc1.rst Loading commit data...
3.5.3.rst Loading commit data...
3.5.3rc1.rst Loading commit data...
3.5.4.rst Loading commit data...
3.5.4rc1.rst Loading commit data...
3.5.5.rst Loading commit data...
3.5.5rc1.rst Loading commit data...
3.6.0.rst Loading commit data...
3.6.0a1.rst Loading commit data...
3.6.0a2.rst Loading commit data...
3.6.0a3.rst Loading commit data...
3.6.0a4.rst Loading commit data...
3.6.0b1.rst Loading commit data...
3.6.0b2.rst Loading commit data...
3.6.0b3.rst Loading commit data...
3.6.0b4.rst Loading commit data...
3.6.0rc1.rst Loading commit data...
3.6.0rc2.rst Loading commit data...
3.6.1.rst Loading commit data...
3.6.1rc1.rst Loading commit data...
3.6.2.rst Loading commit data...
3.6.2rc1.rst Loading commit data...
3.6.2rc2.rst Loading commit data...
3.6.3.rst Loading commit data...
3.6.3rc1.rst Loading commit data...
3.6.4.rst Loading commit data...
3.6.4rc1.rst Loading commit data...
3.6.5.rst Loading commit data...
3.6.5rc1.rst Loading commit data...
3.6.6.rst Loading commit data...
3.6.6rc1.rst Loading commit data...
3.7.0.rst Loading commit data...
3.7.0a1.rst Loading commit data...
3.7.0a2.rst Loading commit data...
3.7.0a3.rst Loading commit data...
3.7.0a4.rst Loading commit data...
3.7.0b1.rst Loading commit data...
3.7.0b2.rst Loading commit data...
3.7.0b3.rst Loading commit data...
3.7.0b4.rst Loading commit data...
3.7.0b5.rst Loading commit data...
3.7.0rc1.rst Loading commit data...