[Zope3-Users] problems using os.popen2 in a heavily used utility

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Mar 8 14:59:12 EST 2007


On Tuesday 30 January 2007 15:57, Shaar Gabriel wrote:
> i read somewhere that os.popen2 is not friendly towards twisted framework,
> and that twisted.internet.reactor.spawnProcess or
> twisted.internet.process.Process should be used.
> i can't undersnad what format the parameter childfds should look like when
> calling those. could somebody show me the equivalent of (stdin, stdout) =
> os.popen2(....) ?

Why don't you use PIL? Then you do not need to create a new sub-process and do 
it all within your well-contained Python thread.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list