summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-16 17:28:37 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-16 17:28:37 (GMT)
commit668213d3b8876a30c5cec84a0d07590374495aba (patch)
tree140cec0510b60e68bfe5037c86f74739c1f004f2 /Doc/lib
parent9f612f9c5a1fb1a35cbe360bfbc3d134da268445 (diff)
downloadcpython-668213d3b8876a30c5cec84a0d07590374495aba.zip
cpython-668213d3b8876a30c5cec84a0d07590374495aba.tar.gz
cpython-668213d3b8876a30c5cec84a0d07590374495aba.tar.bz2
Patch by Jim Fulton (code style tweaked a bit) to support
ExtensionClasses in isinstance() and issubclass(). - abstract instance and class protocols are used *only* in those cases that would generate errors before the patch. That is, there's no penalty for the normal case. - instance protocol: an object smells like an instance if it has a __class__ attribute that smells like a class. - class protocol: an object smells like a class if it has a __bases__ attribute that is a tuple with elements that smell like classes (although not all elements may actually get sniffed ;).
Diffstat (limited to 'Doc/lib')
0 files changed, 0 insertions, 0 deletions