diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-07-26 11:32:03 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-07-26 11:32:03 (GMT) |
commit | c7554e28ee526113281c3fd252c543d063194a60 (patch) | |
tree | f9d969155ce5847f95c2295b9b850276fb05906c /Mac/Lib | |
parent | b417936d4080004b6a7811fb411c6f77db4cc262 (diff) | |
download | cpython-c7554e28ee526113281c3fd252c543d063194a60.zip cpython-c7554e28ee526113281c3fd252c543d063194a60.tar.gz cpython-c7554e28ee526113281c3fd252c543d063194a60.tar.bz2 |
Added a __contains__ method.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/ic.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Lib/ic.py b/Mac/Lib/ic.py index abe5b69..3c0272c 100644 --- a/Mac/Lib/ic.py +++ b/Mac/Lib/ic.py @@ -176,6 +176,9 @@ class IC: 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: |