Matt Nordhoff <[EMAIL PROTECTED]> writes: > Since Python 2.4, sets are built-in types. Use "set" and "frozenset" > instead of "sets.Set" and "sets.ImmutableSet", respectively. > > If you need Python 2.3 compatibility, you can do something like this:
As an alternative, you could canonicalize the keys by sorting them into lexicographic order. I.e. you'd store both (2,3) and (3,2) as (2,3). -- http://mail.python.org/mailman/listinfo/python-list