[MATRIX-SIG] Anybody know all the rules for extension objects?
Paul F. Dubois
Paul F. Dubois" <email@example.com
Fri, 23 Jan 1998 08:11:19 -0800
There are some rules for type objects that I'm not sure are written down
anywhere. For example,
a. Every type must have a dealloc function.
b. If a type defines a number add and is also a sequence you must define
Failure to obey these rules results in code crashes of the unpleasant sort.
In a C++ facility to make it easier to write correct extensions to Python, I
can fix a few of these problems. For example, in case (a) I can supply a
default dealloc and in case (b) set the concat to be the same as the add if
the concat is not supplied.
So, what are the rest of the rules for type objects?
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: firstname.lastname@example.org
administrivia to: email@example.com