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 adamtj, bertchughes, facundobatista, jdunck, lorg, mark.dickinson, rhettinger, skrah
Date 2010-01-24.12:37:20
SpamBayes Score 7.9172896e-05
Marked as misclassified No
Message-id <1264336642.77.0.931199401896.issue2531@psf.upfronthosting.co.za>
In-reply-to
Content
Stefan:  the problem is backwards compatibility.  In 2.6 it's possible to sort a heterogeneous list that contains both Decimal instances and floats.  The resulting order may not be particularly meaningful, but for some applications that doesn't matter.

If we make a Decimal-to-float comparison raise TypeError for 2.7 then sort will raise a TypeError where it used to work, so it's a potential code-breaking change.  We could deprecate:  raise a warning in 2.7 and make it a TypeError in 2.8, but since 2.8 currently seems unlikely to happen that would be a bit pointless.
History
Date User Action Args
2010-01-24 12:37:22mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, facundobatista, jdunck, lorg, skrah, adamtj, bertchughes
2010-01-24 12:37:22mark.dickinsonsetmessageid: <1264336642.77.0.931199401896.issue2531@psf.upfronthosting.co.za>
2010-01-24 12:37:21mark.dickinsonlinkissue2531 messages
2010-01-24 12:37:20mark.dickinsoncreate