Old newbie needs help.

Ian Kelly ian.g.kelly at gmail.com
Tue Dec 23 15:09:59 EST 2014


On Sat, Dec 20, 2014 at 9:34 AM, John Culleton <john at wexfordpress.com>
wrote:
>
> This week I wrote my first Python program, a script callable from
Scribus, a DTP program. It ran! Now I want to spread my wings a little. How
do I call a C language executable subprogram from Python and pass
information back and forth?

When you say "subprogram", do you mean that you want to start and
communicate with a whole new process, or do you merely want to invoke some
dynamically loaded entry point within the same process? For the former, use
the subprocess module. For the latter, use the ctypes module (or consider
using Cython instead of pure Python if Scribus will support it).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141223/e4efe5ca/attachment.html>


More information about the Python-list mailing list