User : pink chry

Title User Language Tags Description Date
Implementing C function callbacks using Python pink chry python

Lets say you have a function in C or C++ that takes a function callback as an argument. You want to call this function by passing a Python function as the callback. This recipe shows the basics by calling the standard C library function qsort, and passing a python function as the compare function.

June 14, 2001