PyDocs

Nav

Python Runtime Services

object.__contains__

builtins

method of object
  • object.__contains__(self, item)
Called to implement membership test operators. Should return true if item is in self, false otherwise. For mapping objects, this should consider the keys of the mapping rather than the values or the key-item pairs.
0 Examples
No examples for builtins/object.__contains__.
See Also
No see-alsos for builtins/object.__contains__
0 Notes
No notes for object.__contains__