[Python-checkins] CVS: python/dist/src/Python bltinmodule.c

Guido van Rossum guido@cnri.reston.va.us
Wed, 16 Jun 1999 13:28:38 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Python
In directory eric:/projects/python/develop/guido/src/Python

Modified Files:
	bltinmodule.c 
Log Message:
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 ;).