Your IP : 216.73.216.213


Current Path : /opt/alt/python35/share/doc/alt-python35-Cython/Demos/callback/
Upload File :
Current File : //opt/alt/python35/share/doc/alt-python35-Cython/Demos/callback/README.rst

This example demonstrates how you can wrap a C API
that has a callback interface, so that you can
pass Python functions to it as callbacks.

The files ``cheesefinder.h`` and ``cheesefinder.c``
represent the C library to be wrapped.

The file ``cheese.pyx`` is the Cython module
which wraps it.

The file ``run_cheese.py`` demonstrates how to
call the wrapper.