objects as mutable dictionary keys

Steven Bethard steven.bethard at gmail.com
Tue Dec 28 17:40:54 EST 2004


Peter Maas wrote:
> Peter Maas schrieb:
> 
>> There was a huge and sometimes heated debate about tuples, lists and
>> dictionaries recently, and the mainstream opinion was that dictionary
>> keys must not be mutable, so lists are not allowed as dictionary keys.
> 
> 
> Warning, long posting (~ 100 lines)
> 
[snip summary]

Yeah, that looks like a pretty decent summary to me.  I wonder if this 
would be worth posting on the Wiki somewhere?  Maybe:

http://www.python.org/moin/DictionaryKeys

That makes it easy to point to when this issue comes up again.

Steve



More information about the Python-list mailing list