[Python-checkins] r61214 - python/trunk/Lib/_abcoll.py

raymond.hettinger python-checkins at python.org
Mon Mar 3 23:19:58 CET 2008


Author: raymond.hettinger
Date: Mon Mar  3 23:19:58 2008
New Revision: 61214

Modified:
   python/trunk/Lib/_abcoll.py
Log:
Issue 2226: Callable checked for the wrong abstract method.

Modified: python/trunk/Lib/_abcoll.py
==============================================================================
--- python/trunk/Lib/_abcoll.py	(original)
+++ python/trunk/Lib/_abcoll.py	Mon Mar  3 23:19:58 2008
@@ -107,7 +107,7 @@
     __metaclass__ = ABCMeta
 
     @abstractmethod
-    def __contains__(self, x):
+    def __call__(self, *args, **kwds):
         return False
 
     @classmethod


More information about the Python-checkins mailing list