Re: (objects as) mutable dictionary keys

From: Peter Maas (peter_at_somewhere.com)
Date: 01/14/05


Date: Fri, 14 Jan 2005 12:23:09 +0100

I have summarized the discussion about the usability of lists (and
and other mutable types) as dictionary keys and put it into the
Python wiki.URL: http://www.python.org/moin/DictionaryKeys.

This summary might be used as a reference should the 'mutable
dictionary keys' issue come up again in c.l.py.

-- 
-------------------------------------------------------------------
Peter Maas,  M+R Infosysteme,  D-52070 Aachen,  Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------


Relevant Pages

  • Re: (objects as) mutable dictionary keys
    ... >>I have summarized the discussion about the usability of lists (and ... >>and other mutable types) as dictionary keys and put it into the ... >>dictionary keys' issue come up again in c.l.py. ... therefore not recommended in Python. ...
    (comp.lang.python)
  • Re: (objects as) mutable dictionary keys
    ... > I have summarized the discussion about the usability of lists (and ... > and other mutable types) as dictionary keys and put it into the ... > dictionary keys' issue come up again in c.l.py. ... It is not impossible in Python. ...
    (comp.lang.python)
  • Re: (objects as) mutable dictionary keys
    ... > I have summarized the discussion about the usability of lists (and ... > and other mutable types) as dictionary keys and put it into the ... Note that Peter Maas has put this up on the Python wiki, ...
    (comp.lang.python)
  • Re: (objects as) mutable dictionary keys
    ... > and other mutable types) as dictionary keys and put it into the ... > dictionary keys' issue come up again in c.l.py. ... Lists are not safe ... _because_ the cmp function is NOT a compare of id, ...
    (comp.lang.python)
  • Re: Why are tuples immutable?
    ... > and Python doesn't try to pretend that it can hash mutable types. ... and those features can be abused to pretend to hash ...
    (comp.lang.python)