Adding instance attributes to types

khughes at pacific.edu khughes at pacific.edu
Sat Mar 18 22:13:24 EST 2006


I have written a C module which implements a new Python type, and
implemented data attributes for the type using PyGetSetDef/tp_getset.
However, I want to allow instances of this type to have additional data
attributes which also have get() and set() functions.  (This might be
better suited to use inherited classes or types, but the differences
would be very minor).  Is this possible?




More information about the Python-list mailing list