[issue6431] Fraction fails equality test with a user-defined type

Case Van Horsen report at bugs.python.org
Wed Jul 8 05:08:26 CEST 2009

Case Van Horsen <casevh at gmail.com> added the comment:

Change Fraction __eq__ method to give the other operand a chance to
perform the comparison if Fraction doesn't understand the other operand.

keywords: +patch
Added file: http://bugs.python.org/file14470/fractions_patch.diff

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list