Python 3.0, rich comparisons and sorting order
Batista, Facundo
FBatista at uniFON.com.ar
Tue Sep 21 14:14:02 EDT 2004
More information about the Python-list mailing list
Tue Sep 21 14:14:02 EDT 2004
- Previous message (by thread): Python 3.0, rich comparisons and sorting order
- Next message (by thread): Python 3.0, rich comparisons and sorting order
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Carlos Ribeiro] #- Assume that you're implementing a spreadsheet like application in #- Python. The user fills a column with arbitrary data, and asks for it #- to be sorted. What is the sorting order? Excel, for instance, defines #- an ordering (it's arbitrary, but it's deterministic). You could also do that passing a function to sort(). #- sort() should work regardless of the list elements, and return a #- reasonable result, even if not strictly correct in the numerical #- sense. Define "reasonable result" with different datatypes. . Facundo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20040921/4f497e31/attachment.html>
- Previous message (by thread): Python 3.0, rich comparisons and sorting order
- Next message (by thread): Python 3.0, rich comparisons and sorting order
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list