]> granicus.if.org Git - python/commit
Patch by Jim Fulton (code style tweaked a bit) to support
authorGuido van Rossum <guido@python.org>
Wed, 16 Jun 1999 17:28:37 +0000 (17:28 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 16 Jun 1999 17:28:37 +0000 (17:28 +0000)
commit668213d3b8876a30c5cec84a0d07590374495aba
tree140cec0510b60e68bfe5037c86f74739c1f004f2
parent9f612f9c5a1fb1a35cbe360bfbc3d134da268445
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 ;).
Python/bltinmodule.c