In message <87bp79qdhk....@rudin.co.uk>, Paul Rudin wrote: > Certainly you can model a set as a dictionary, but that's likely to be > less efficient than using a set, and quite possibly you'll need to roll > your own operations on your sets, whereas they're provided for the built > in implementation.
Did you know that applying the “set” or “frozenset” functions to a dict return a set of its keys? Seems a bit dodgy, somehow. -- http://mail.python.org/mailman/listinfo/python-list