Commit Graph

9 Commits

Author SHA1 Message Date
Andrew M. Kuchling 946c53ed7f Run these demo scripts through reindent.py to give them 4-space indents. I've verified that their output is unchanged. 2003-04-24 17:13:18 +00:00
Andrew M. Kuchling 4f237b6870 Modernize code by using isinstance() instead of type() checks 2003-04-24 17:04:45 +00:00
Andrew M. Kuchling 64b3c830d4 Avoid TypeError by not comparing complex numbers 2003-04-24 16:59:45 +00:00
Guido van Rossum 7ca9a1a466 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.)
1998-09-09 14:07:06 +00:00
Guido van Rossum 0609f191bc A completely new Rat.py by Sjoerd. 1997-05-13 19:25:57 +00:00
Guido van Rossum 2e61103c0b adapted to new overloading scheme 1994-10-09 22:36:28 +00:00
Guido van Rossum 7565b93414 *** empty log message *** 1993-12-17 14:23:52 +00:00
Guido van Rossum f1bbf9c308 Add coercions 1993-10-27 09:28:23 +00:00
Guido van Rossum e876949f2b Initial revision 1992-08-13 12:14:11 +00:00