On 7/6/05, Will McGugan <[EMAIL PROTECTED]> wrote: > Hi, > > Are there any benefits in using a frozenset over a set, other than it > being immutable?
A frozenset can be used as a key of a dict: .>> s1 = set([1]) .>> s2 = frozenset([2]) .>> {s1: 1} Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: set objects are unhashable .>> {s2:1} {frozenset([2]): 1} -- Qiangning Hong Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> -- http://mail.python.org/mailman/listinfo/python-list