> I'm pretty sure this will work, though I've not tested. C.get(item) > will return None (thus false) if item was not in B, and 1 (thus true) > if item was in B. You should definitely give a try to this version. Yes, but what if item == None, or item == ''? Alex.