Marco Bizzarri wrote:
looking at the source, maybe you could create a subclass of Set redefining the __contains__ method?
Made some tries, but __contains__ are never called >>> class foo(set): ... def __contains__(self, value): ... print value ... >>> a = foo((1,2)) >>> Thanks, Michele -- http://mail.python.org/mailman/listinfo/python-list