[Python-Dev] Re: lists v. tuples

Christian Tismer tismer@tismer.com
Fri, 14 Mar 2003 16:42:10 +0100

Alex Martelli wrote:

> Sorting plays with mutability by working in-place, but for many
> uses it would be just as good if sorting returned a sorted copy
> instead -- the key thing here is the sorting, not the mutability.

And the key assumption for sorting things is that
the things are sortable, which means there
exists and order on the basic set.
Which again suggests that list elements usually
have something in common.

ciao - chris

p.s.: I'm not using a shopping tuple, since I sort
my list be the stores I have to visit. :-)
Christian Tismer             :^)   <mailto:tismer@tismer.com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34  home +49 30 802 86 56  pager +49 173 24 18 776
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/