Author mark.dickinson
Recipients adamtj, bertchughes, facundobatista, jdunck, lorg, mark.dickinson, rhettinger, skrah
Date 2010-01-24.12:37:20
SpamBayes Score 7.91729e-05
Marked as misclassified No
Message-id <>
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.
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: <>
2010-01-24 12:37:21mark.dickinsonlinkissue2531 messages
2010-01-24 12:37:20mark.dickinsoncreate