Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c79919 commit 7b393fcCopy full SHA for 7b393fc
1 file changed
Lib/UserList.py
@@ -17,6 +17,7 @@ def __cmp__(self, other):
17
return cmp(self.data, other.data)
18
else:
19
return cmp(self.data, other)
20
+ def __contains__(self, item): return item in self.data
21
def __len__(self): return len(self.data)
22
def __getitem__(self, i): return self.data[i]
23
def __setitem__(self, i, item): self.data[i] = item
0 commit comments