daniel wrote:

> is there any typical usage that shows their difference?

>>> d = {}
>>> d[('multi', 'part', 'key')] = 'schnarz'
>>> d[['multi', 'part', 'key']] = 'schnarz'
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: list objects are unhashable


A lot of discussions regarding this have been fiercly fought on this list -
go google :)

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to