case-insensitive and internationalized sort
Chad Netzer
cnetzer at mail.arc.nasa.gov
Thu Dec 19 16:47:07 EST 2002
On Thursday 19 December 2002 13:01, Kevin Altis wrote:
> Anyone up for a casesensitive flag addition to the sort() method?
You've already demonstrated that you can achieve what you want by
passing in a compare function. Why do you need a flag or to do it
also? The flag isn't nearly as flexible or powerful as the
existing method, and would be confusing when you are NOT sorting
homogeneous, lexicographic objects. A better proposal would be to
put up a Python Cookbook entry demonstrating the various methods
for doing a case-insensitive sort (or a FAQ entry if it is a really
common problem; but I doubt it is).
--
Bay Area Python Interest Group - http://www.baypiggies.net/
Chad Netzer
cnetzer at mail.arc.nasa.gov
More information about the Python-list
mailing list