This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients casevh, jyasskin, mark.dickinson
Date 2009-07-16.18:34:28
SpamBayes Score 6.3638765e-07
Marked as misclassified No
Message-id <>
Thanks again, casevh!  The patch looks good.  I've added to it a bit,
though---see issue6431.patch.  In detail:

- don't use subtraction with unknown types for <, <=, >, >=;  this is
  dangerous, since the unknown type may well do a lossy conversion, and
  comparisons should really be exact where possible;  as with __eq__,
  it seems better to return NotImplemented and give the other type a

- handle infs and nans correctly in comparisons with floats

- a few more tests.

casevh, please could you have a look at the attached patch and let me
know whether it still works with your gmpy port?

Jeffrey, any comments on these changes?
Date User Action Args
2009-07-16 18:34:34mark.dickinsonsetrecipients: + mark.dickinson, casevh, jyasskin
2009-07-16 18:34:33mark.dickinsonsetmessageid: <>
2009-07-16 18:34:30mark.dickinsonlinkissue6431 messages
2009-07-16 18:34:30mark.dickinsoncreate