Gary Herron wrote: [---] >> I just tried typing the above in Python, and it - obviously - doesn't >> work, so it must be some other syntax. >> >> > Not with tuples, lists or dictionaries. However a more recent addition > to the language is Sets, and they support set differences: > >>>> from sets import Set >>>> Set([1,2,3,4,5,6]) - Set([2,3,6]) > Set([1, 4, 5])
That's it! Thanks; I knew I had seen it. That's a pretty cool feature; which I have use for in a library I'm writing. -- http://mail.python.org/mailman/listinfo/python-list