[SciPy-user] remove duplicate points...

Anne Archibald peridot.faceted@gmail....
Wed Apr 23 20:51:34 CDT 2008

On 23/04/2008, Michael <mnandris@btinternet.com> wrote:

>  I approve of the existence of tuples, on philosophical grounds alone; i
>  just don't know what they're for; i never encountered a burning need for
>  them, apart from the above.

Well, that's basically it. They're immutable and can therefore be used
as keys in dictionaries and sets. Sets have a "FrozenSet" incarnation
for the same reason. It's kind of a clumsy solution to the problem,
but all the others are clumsy too (hey, MAPLE has a sequence type that
unboxes itself when you put it in another sequence, to your total
astonishment). And there are occasional times when you want something
to be immutable in other contexts.


More information about the SciPy-user mailing list