Death to tuples!

skip at pobox.com skip at pobox.com
Mon Nov 28 16:10:59 EST 2005


    Mike> Tuples have the problem that they are immutable, except when
    Mike> they're not (or for proper values of immutable, your
    Mike> choice). They're hashable, except when they're not. Or
    Mike> equivalently, they can be used as dictionary keys - or set
    Mike> elements - except when they can't.

For those of us not following this thread closely, can you identify cases
where tuples are mutable, not hashable or can't be used as dictionary keys?
I've never encountered any such cases.

Skip



More information about the Python-list mailing list