How to define a callback from Python to a C program ...
Marten Feldtmann
marten at toppoint.de
Wed Aug 15 17:04:11 EDT 2001
Markus Schaber schrieb:
>
> Hi,
>
> Marten Feldtmann <marten at toppoint.de> schrub:
>
> > 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 ???
>
Ok, the language I use is Smalltalk and I've no support to write
COM server code: therefore COM is not suitable.
> If the language your application is written lets you execute external
> programs, than you can use pipes. Start the python program from your
> application, and then communicate with it through the pipes.
>
Hmm ...
>
> If both fails, you could open a tcp or udp socket, and communicate this
> way.
>
Ok, that could do it ....
Marten
More information about the Python-list
mailing list