insert unique data in a list

Andreas Waldenburger usenot at geekmail.INVALID
Sun Dec 13 13:19:10 EST 2009


On 13 Dec 2009 17:57:47 GMT mattia <gervaz at gmail.com> wrote:

> Using set does'n work (i.e. the python interpreter tells me:
> TypeError: unhashable type: 'list')...

Convert the lists to tuples before adding them. Tuples are hashable.

/W

-- 
INVALID? DE!




More information about the Python-list mailing list