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


Groups > comp.lang.python > #33249

Re: Passing functions as parameter (multiprocessing)

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '(even': 0.05; 'wrapper': 0.07; 'below).': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:skip:m 10': 0.09; 'benjamin': 0.16; 'received:80.91.229.3': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-dialin.net': 0.16; 'simplified': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'example': 0.23; 'header:User-Agent:1': 0.26; 'fixed': 0.28; 'header:X -Complaints-To:1': 0.28; 'post': 0.28; 'preceding': 0.29; 'definition': 0.29; 'function': 0.30; 'code': 0.31; 'to:addr :python-list': 0.33; 'doing': 0.35; 'posting': 0.35; 'received:org': 0.36; 'but': 0.36; 'should': 0.36; 'subject: (': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'comment': 0.38; 'nothing': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'here': 0.65; 'special': 0.73; 'oscar': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: Passing functions as parameter (multiprocessing)
Date Tue, 13 Nov 2012 17:18:01 +0100
Organization None
References <425807738.1035823.1352809155090.JavaMail.root@sequans.com> <k7tfob$bj4$1@ger.gmane.org> <CAHVvXxTgc+NzG44z9aDj=dfPbZUbczEka2wtSoAUzwNSkDzq_A@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host p5084b062.dip.t-dialin.net
User-Agent KNode/4.7.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.3632.1352823489.27098.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1352823489 news.xs4all.nl 6891 [2001:888:2000:d::a6]:58365
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33249

Show key headers only | View raw


Oscar Benjamin wrote:

> I don't know if this is to do with the way that the code was
> simplified before posting but this subproc function wrapper does
> nothing (even after Peter fixed it below). This code is needlessly
> complicated for what it does.

Jean-Michel's Post had the following comment preceding his subproc() 
definition

>>>    # here it should be decorated, but for this example to be kept
>>>     simple, the function is only wrapped, doing nothing special

which I unhelpfully removed...

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


Thread

Re: Passing functions as parameter (multiprocessing) Peter Otten <__peter__@web.de> - 2012-11-13 17:18 +0100

csiph-web