Death to tuples!
skip at pobox.com
skip at pobox.com
Tue Nov 29 12:12:41 EST 2005
>> Actually, no, I hadn't. I don't use tuples that way. It's rare when
>> I have a tuple whose elements are not all floats, strings or ints,
>> and I never put mutable containers in them.
Alex> You never have a dict whose values are lists?
Sorry, incomplete explanation. I never create tuples which contain mutable
containers, so I never have the "can't use 'em as dict keys" and related
problems. My approach to use of tuples pretty much matches Guido's intent I
think: small, immutable, record-like things.
immutable-all-the-way-down-ly, y'rs,
Skip
More information about the Python-list
mailing list