]> granicus.if.org Git - python/commit
Issue #6431: Fix Fraction comparisons to return NotImplemented when
authorMark Dickinson <dickinsm@gmail.com>
Sat, 18 Jul 2009 14:41:42 +0000 (14:41 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 18 Jul 2009 14:41:42 +0000 (14:41 +0000)
commit85424c93549198d96efb310c6c282941eb47225c
tree1adc0358d02dfed640ce9af3353b900dadf33302
parent8c1a50abd306098db6bb3293d0a6aeec9cacf7f4
Issue #6431: Fix Fraction comparisons to return NotImplemented when
the Fraction type doesn't know how to handle the comparison without
loss of accuracy.  Also, make sure that comparisons between Fractions
and float infinities or nans do the right thing.
Lib/fractions.py
Lib/test/test_fractions.py
Misc/NEWS