Shaun wrote:
Hi,

I'm trying to create a dictionary with lists as the value for each
key. I was looking for the most elegant way of doing it...

   Try using a tuple, instead of a list, for each key.  Tuples
are immutable, so there's no issue about a key changing while
being used in a dictionary.

                                John Nagle
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to