[Bf-python] OT: *_dealloc functions
Ken Hughes
khughes at pacific.edu
Wed Mar 14 17:52:07 CET 2007
While playing around, I wondered what would happen if I didn't define a
foo_dealloc() function for a new type and then called PyType_Ready. As
I expected, an entry was created in the tp_dealloc slot which I assume
is the general Python object deallocation function.
So might I suggest we save a little space and not declare those local
dealloc functions unless they're really needed (i.e., the object has its
own allocated memory), as long as the type initialization is done with
PyType_Ready?
Ken
More information about the Bf-python
mailing list