Le vendredi 28 Janvier 2005 22:54, jfj a écrit : > Francis Girard wrote: > > What was the goal behind this rule ? > > If you have a list which contains integers, strings, tuples, lists and > dicts and you sort it and print it, it will be easier to detect what > you're looking for:) > > > G.
Mmm. Certainly not one of my top requirements. Anyway, it would be better to separately provide a compare function that orders elements according to their types instead of making the comparison operators default semantics somewhat obscure (and dangerous). Thank you Francis Girard -- http://mail.python.org/mailman/listinfo/python-list