finding object using IS instead of ==

Mark Hahn mark at
Thu Aug 28 06:14:42 CEST 2003

If I have a large collection (list, tuple, or dict) of objects, can I locate
one quickly that matches a given object using the IS equivalence operator
instead of the value == operator?

More information about the Python-list mailing list