Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26314 > unrolled thread

Re: Pass data to a subprocess

Started byLaszlo Nagy <gandalf@shopzeus.com>
First post2012-07-31 16:46 +0200
Last post2012-07-31 16:46 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Pass data to a subprocess Laszlo Nagy <gandalf@shopzeus.com> - 2012-07-31 16:46 +0200

#26314 — Re: Pass data to a subprocess

FromLaszlo Nagy <gandalf@shopzeus.com>
Date2012-07-31 16:46 +0200
SubjectRe: Pass data to a subprocess
Message-ID<mailman.2785.1343745980.4697.python-list@python.org>
 > I think I got it now, if I already just mix the start before another 
add, inside the Process.run it won't see the new data that has been 
added after the start. So this way is perfectly safe only until the 
process is launched, if it's running I need to use some 
multiprocess-aware data structure, is that correct?

Yes. Read this:

http://docs.python.org/library/multiprocessing.html#exchanging-objects-between-processes

You can use Queues and Pipes. Actually, these are basic elements of the 
multiprocessing module and they are well documented. I wonder if you 
read the documentation at all, before posting questions here.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web