Added a __contains__ method.

This commit is contained in:
Jack Jansen 2002-07-26 11:32:03 +00:00
parent b417936d40
commit c7554e28ee
1 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,9 @@ def keys(self):
return rv
def has_key(self, key):
return self.__contains__(key)
def __contains__(self, key):
try:
dummy = self.ic.ICFindPrefHandle(key, self.h)
except icglue.error: