]> granicus.if.org Git - python/commit
Fix a bug where comparison of a rational with a float failed because
authorGuido van Rossum <guido@python.org>
Wed, 9 Sep 1998 14:07:06 +0000 (14:07 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 9 Sep 1998 14:07:06 +0000 (14:07 +0000)
commit7ca9a1a466992e556b3192a7a0ba8baa652e342a
tree2c69ff8adee11493c7e176a7e19df60fe20a6fab
parent76d1f96fe2bf905288ac8c4ef991302f5aeb695a
Fix a bug where comparison of a rational with a float failed because
the difference got converted to float.
Put brackets around the string representation of (non-integer)
rationals.
(Sjoerd Mullender.)
Demo/classes/Rat.py