469,353 Members | 2,053 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

Object finalization

Hi,
I have a question about Python object finalization. I would like to be notified when an Object is deallocated. The problem is I would like to do it in C.
The only way to register a finalizer I found out is to create a weak reference object and give it a callback. But the callback must be a Python function not C. That seems to be too difficult.

Is there any (undocumented) way to do PyObject_RegisterFinalizer(PyObject *o, C-Callback-Func)?

Thanks a lot.

Best Regards,
Tobbi
Jul 18 '05 #1
0 1132

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Rick | last post: by
9 posts views Thread by Rob Nicholson | last post: by
6 posts views Thread by Brian Gideon | last post: by
20 posts views Thread by Justin Rich | last post: by
9 posts views Thread by Duggi | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.