[SciPy-user] remove duplicate points...
Anne Archibald
peridot.faceted at gmail.com
Wed Apr 23 21:51:34 EDT 2008
On 23/04/2008, Michael <mnandris at 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.
Anne
More information about the SciPy-User
mailing list