Most efficient solution?

Alex new_name at mit.edu
Mon Jul 16 11:55:41 EDT 2001


> 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.



More information about the Python-list mailing list