Neal Becker <[EMAIL PROTECTED]> wrote:
> 
> I'd like to start several processes, each a pipe reading from my python main
> process.  It looks like I want to write all my data to each process, then
> use communicate(), but I don't want to wait for each process yet, since
> then they would block each other.  Why not add a nowait option to
> communicate?

Alternatively, someone could commit some rough equivalent of this to the
subprocess module:
    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554

Yes, I wrote it, and previously suggested it within the previous thread
"Add timeout to subprocess.py?". Guido had previously privately asked if
it could be phased as a patch to subprocess.py in such a way to be 2.2
compatible.

Aside from fcntl module semantics (I don't know if they changed, whether
it should be using FCNTL instead, ...), and/or the 3 additional
functions from pywin32 that probably should be included in the
_subprocess module on Windows, the core functionality of a pollable
subprocess is available in the above recipe.

 - Josiah

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to