Sets Module Bug?
Chris S.
chrisks at NOSPAMudel.edu
Mon Aug 2 05:25:50 EDT 2004
>>> from sets import *
>>> Set((1,2,3))
Set([1, 2, 3])
>>> Set([1,2,3])
Set([1, 2, 3])
>>> Set(([1,2,3],[4,5,6]))
Traceback (most recent call last):
File "<input>", line 1, in ?
File "sets.py", line 399, in __init__
self._update(iterable)
File "sets.py", line 344, in _update
data[element] = value
TypeError: list objects are unhashable
How can a Set using a tuple or list be ok, but not a tuple of lists?
More information about the Python-list
mailing list