On Sun, Jan 23, 2011 at 2:34 PM, Christian Heimes <li...@cheimes.de> wrote: > your_set = set(your_list) > > if your_set.issuperset(set([A, B])) and your_set.isdisjoint(set([C, D])):
if your_set.intersection([A, B, C, D]) == set([A, B]): ... Cheers, Ian -- http://mail.python.org/mailman/listinfo/python-list