Hi Greg,<br><br>I was wrapping a C code in pyrex. While wrapping it, I made it OO as well. However, I face one problem with this design ie callbacks. For every instance of the class i need to track which class registered which callback function. I do this currently by using global dict with instance id as the key. This serves the purpose. However, i thought that probably by giving a special treatment to callbacks (specially in classes), I will get&nbsp; cleaner and better code.&nbsp; As well I think it is worth including in pyrex. If you think it is worth it, It will be great if you guyz can pull this off. 
<br><br>class ABC:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cdef class_callback unsigned long mycb_func(int a, int b):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return a*b<br><br>In the above code, I have not specified self for mycb_func,&nbsp; as specifying self or anything else will change the callback function signatures. if mycb_func is automatically registered as a member function for the class ABC (by virtue of class_callback kyword), without specifying self, it would be awesome. It would be possible to have per instance registered callbacks without using a global dict to track&nbsp; and find these.
<br><br>Thanks<br>