title: Embedding Python with C
body: <p>I want to use an event based Python library in a C application. I use the offical C-API for embedding Python: <a href="http://docs.python.org/2/c-api/index.html#c-api-index" rel="nofollow noreferrer">http://docs.python.org/2/c-api/index.html#c-api-index</a></p>
  
  <p>It is no problem to call methods from C and collect return values. However, I don't know how to do the following:</p>
  
  <p>Several of the python library functions take what I think is a python function pointer as an argument. </p>
  
  <p>Is it possible, when calling these methods from C, to pass a C function pointer so the Python function uses a C function as callback?</p>
  
  <p>If not, how to accomplish having Python use a C callback?</p>