[Tutor] An example extension class

D-Man dsh8290@rit.edu
Tue, 16 Jan 2001 12:45:26 -0500

Just a note to clear any possible confusion :

You can't write an extension *class* in C.  It is an extension *type*.
This is one of the few deficiencies in Python's design.  The
significance of this is C types can't be inherited from by a Python
class.  This is why classes like UserList UserString and UserDict
exist in the standard distribution.  (these Python classes wrap the C
types using aggregation to allow subclassing)