How to define a callback from Python to a C program ...

Marten Feldtmann marten at toppoint.de
Wed Aug 15 14:03:43 EDT 2001


I want to extend my application (not written in C) with Python and
I want to call from Python to my program and give my program some
information (say a string) ... it's something like a callback.

Can this be done ???


              (calls)
Ext.Program -----------> Python
                           |
                           |
            (callback)     |
    + <--------------------+
    |
    |
    |        (return)
    +---------------------->
                           |
                           |
            (returns)      |
     <---------------------+



Marten



More information about the Python-list mailing list