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


Groups > comp.lang.python > #26357

Re: Pass data to a subprocess

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <andrea.crotti.0@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'frameworks': 0.05; 'memory.': 0.05; 'correct.': 0.07; 'dependency': 0.07; 'level,': 0.07; 'python': 0.09; 'received:mail-lpp01m010-f46.google.com': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.10; 'url:)': 0.13; 'languages.': 0.15; 'client,': 0.16; 'foot': 0.16; 'pipes': 0.16; 'return,': 0.16; 'roy': 0.16; 'sorts': 0.16; 'tcp': 0.16; 'tcp,': 0.16; 'think?': 0.16; 'wrote:': 0.17; 'appears': 0.18; 'memory': 0.18; 'module': 0.19; 'written': 0.20; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'external': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; 'message-id:@mail.gmail.com': 0.27; 'run': 0.28; 'convince': 0.29; 'servers.': 0.29; 'url:mailman': 0.29; 'objects': 0.29; 'usually': 0.30; 'received:209.85.215.46': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; 'instead,': 0.33; 'subject:data': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'faster': 0.35; 'process,': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'child': 0.36; 'anything': 0.36; 'does': 0.37; 'option': 0.37; 'two': 0.37; 'communicate': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'instead': 0.39; 'takes': 0.39; 'notice': 0.39; 'little': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'url:mail': 0.40; 'think': 0.40; 'your': 0.60; 'most': 0.61; 'you.': 0.61; 'production': 0.63; 'worth': 0.63; 'effective': 0.63; 'details': 0.63; 'more': 0.63; 'boss': 0.65; 'smith': 0.71; 'connection.': 0.75; 'article': 0.78; 'difference.': 0.84; 'nagy': 0.84; 'url:kr': 0.84; 'imagine': 0.96; 'hand,': 0.97
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LJbNITCif9p0GwQeleBm2S5G43R+t3lMQUVTdXvaGv8=; b=P263LQAqovkcbrNRSBA6dWoTFX/4+dIRVduip+/DGkX/5p6Ly8HuxDcfE3GW4uCdFe ZVCPB0zo72xXrGAGsg9u2iev8rWNX8Jj7rlFFeX8+gsjfZnn/JEDFxuyJ3WfZAMSnP4G 4RbRAw0KprqZr+baMxy5BPtfWyTK1Bu1eprlP4gx2dE2fcpudHJU+3u7VM7cNr2pk03m tbXX1u4M6H5IK1aLgh3THDVJ8t+xnQTKRf4PXbTvIsm9CB7B1YhFx43lcXIdse39MPfY ipx7hfLNlmpa8NLkPxY5srvqw360APIejoJ8XJYCOvtC72DxzbADpaxP2vNUMeF6fGo5 oJ3w==
MIME-Version 1.0
In-Reply-To <roy-DBE17E.06593701082012@news.panix.com>
References <CAF_E5JY5FgEJub7tNNzZEj0tri8Z7oPZUSLOLtD+5f0t7Yv+Yg@mail.gmail.com> <CAF_E5JY2sEsauXM-teW4hTHePqFCYK6z+9oLMZcjVWFyYs+gKg@mail.gmail.com> <5017EFB0.6080608@shopzeus.com> <CAF_E5JaEHxsjKoHRhZLzh+YdPU8UqKHae9efCsP7zEvm_37+2w@mail.gmail.com> <mailman.2809.1343809166.4697.python-list@python.org> <roy-DBE17E.06593701082012@news.panix.com>
Date Wed, 1 Aug 2012 14:25:02 +0100
Subject Re: Pass data to a subprocess
From andrea crotti <andrea.crotti.0@gmail.com>
To Roy Smith <roy@panix.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2826.1343827504.4697.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343827504 news.xs4all.nl 6881 [2001:888:2000:d::a6]:56146
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26357

Show key headers only | View raw


2012/8/1 Roy Smith <roy@panix.com>:
> In article <mailman.2809.1343809166.4697.python-list@python.org>,
>  Laszlo Nagy <gandalf@shopzeus.com> wrote:
>
>> Yes, I think that is correct. Instead of detaching a child process, you
>> can create independent processes and use other frameworks for IPC. For
>> example, Pyro.  It is not as effective as multiprocessing.Queue, but in
>> return, you will have the option to run your service across multiple
>> servers.
>
> You might want to look at beanstalk (http://kr.github.com/beanstalkd/).
> We've been using it in production for the better part of two years.  At
> a 30,000 foot level, it's an implementation of queues over named pipes
> over TCP, but it takes care of a zillion little details for you.
>
> Setup is trivial, and there's clients for all sorts of languages.  For a
> Python client, go with beanstalkc (pybeanstalk appears to be
> abandonware).
>>
>> The most effective IPC is usually through shared memory. But there is no
>> OS independent standard Python module that can communicate over shared
>> memory.
>
> It's true that shared memory is faster than serializing objects over a
> TCP connection.  On the other hand, it's hard to imagine anything
> written in Python where you would notice the difference.
> --
> http://mail.python.org/mailman/listinfo/python-list


That does look nice and I would like to have something like that..
But since I have to convince my boss of another external dependency I
think it might be worth
to try out zeromq instead, which can also do similar things and looks
more powerful, what do you think?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Pass data to a subprocess Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-01 10:19 +0200
  Re: Pass data to a subprocess Roy Smith <roy@panix.com> - 2012-08-01 06:59 -0400
    Re: Pass data to a subprocess Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-01 13:07 +0200
    Re: Pass data to a subprocess Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-01 13:26 +0200
    Re: Pass data to a subprocess andrea crotti <andrea.crotti.0@gmail.com> - 2012-08-01 14:25 +0100
    Re: Pass data to a subprocess Roy Smith <roy@panix.com> - 2012-08-01 15:07 -0400
  Re: Pass data to a subprocess Grant Edwards <invalid@invalid.invalid> - 2012-08-01 14:16 +0000
    Re: Pass data to a subprocess Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-01 16:32 +0200
      Re: Pass data to a subprocess Grant Edwards <invalid@invalid.invalid> - 2012-08-01 19:48 +0000
        Re: Pass data to a subprocess Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-02 08:10 +0200
          Re: Pass data to a subprocess Grant Edwards <invalid@invalid.invalid> - 2012-08-02 14:29 +0000
        Re: Pass data to a subprocess Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-02 13:21 -0400
    Re: Pass data to a subprocess Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-01 16:42 +0200
    Re: Pass data to a subprocess andrea crotti <andrea.crotti.0@gmail.com> - 2012-08-01 16:24 +0100

csiph-web