[issue6431] Fraction fails equality test with a user-defined type
Case Van Horsen
report at bugs.python.org
Thu Jul 16 07:22:35 CEST 2009
Case Van Horsen <casevh at gmail.com> added the comment:
I've attached a patch that creates DummyRational and then tests
comparisons between Fraction and DummyRational. The __eq__ method also
verifies that the type of the other argument is fractions.Fraction.
----------
Added file: http://bugs.python.org/file14504/patch_test_fractions.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6431>
_______________________________________
More information about the Python-bugs-list
mailing list