Line-by-line processing when stdin is not a tty

Wed Aug 11 20:37:20 CEST 2010

In article <i3uo7t$6mk$1 at>,
 Tim Harig <usernet at> wrote:

> On 2010-08-11, RG <rNOSPAMon at> wrote:
> > I'm writing a system in a different language but want to use a Python 
> > library.  I know of lots of ways to do this (embed a Python interpreter, 
> > fire up a python server) but by far the easiest to implement is to have 
> > the main program spawn a Python interpreter and interact with it through 
> > its stdin/stdout.
> Or, open python using a socket.

You mean a TCP/IP socket?  Or a unix domain socket?  The former has 
security issues, and the latter seems like a lot of work.  Or is there 
an easy way to do it that I don't know about?


More information about the Python-list mailing list