diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2008-09-02 10:43:28 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2008-09-02 10:43:28 (GMT) |
commit | 33794a7bc79d0feb8e7fa109438197b2cf398880 (patch) | |
tree | 241162e4d5095a47d67c9440865633a11d7bcb81 /Lib | |
parent | 407798595dab4698a86eac4db529cd94b586331e (diff) | |
download | cpython-33794a7bc79d0feb8e7fa109438197b2cf398880.zip cpython-33794a7bc79d0feb8e7fa109438197b2cf398880.tar.gz cpython-33794a7bc79d0feb8e7fa109438197b2cf398880.tar.bz2 |
Merged revisions 66144 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66144 | nick.coghlan | 2008-09-02 20:14:47 +1000 (Tue, 02 Sep 2008) | 1 line
Issue 3747: Fix caching in ABCMeta.__subclasscheck__ (R: Georg Brandl)
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/abc.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -159,12 +159,12 @@ class ABCMeta(type): # Check if it's a subclass of a registered class (recursive) for rcls in cls._abc_registry: if issubclass(subclass, rcls): - cls._abc_registry.add(subclass) + cls._abc_cache.add(subclass) return True # Check if it's a subclass of a subclass (recursive) for scls in cls.__subclasses__(): if issubclass(subclass, scls): - cls._abc_registry.add(subclass) + cls._abc_cache.add(subclass) return True # No dice; update negative cache cls._abc_negative_cache.add(subclass) |