Mark Dickinson <dicki...@gmail.com> added the comment: Here's a patch.
I'm still not 100% convinced this is a good idea. Part of my objection is that it seems likely that these comparisons are fairly useless, in that a mixed-type comparison is probably going to be followed by a mixed-type arithmetic operation at some point (unless people are misspelling "x < 0" as "x < 0.0"). So all that's really gained is a noisy failure instead of a silent one. Still, I suppose that's something. ---------- keywords: +patch resolution: rejected -> stage: -> patch review status: closed -> open versions: +Python 2.7 -Python 2.5, Python 2.6 Added file: http://bugs.python.org/file13389/float_decimal_comparisons.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue2531> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com