programme call with popen

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Wed Aug 29 20:07:25 CEST 2001


Wed, 29 Aug 2001 10:24:03 -0700, Jeff Shannon <jeff at ccvcorp.com> pisze:

>>>> myoutput = fout.read()
> 
> Note that this will block until the program has finished running.

I'm not sure about Windows, but it won't block that long on Unix.
Both processes will run in parallel exchanging data. The consumer
will temporarily block when the queue is empty and the producer will
block when the queue's buffer is full.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list