Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!rt.uk.eu.org!news-transit.tcx.org.uk!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'passes': 0.05; 'arguments,': 0.09; 'subject:Processing': 0.09; 'tuple': 0.09; 'am,': 0.12; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mon,': 0.16; 'wrote:': 0.18; 'arguments': 0.18; 'jan': 0.19; 'header:In-Reply-To:1': 0.22; 'do.': 0.28; 'message-id:@mail.gmail.com': 0.28; 'second': 0.29; 'chris': 0.30; 'to:addr:python-list': 0.34; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2012': 0.67 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=meUlg9CT1b7uWLDGbNG/vlx0xwYMxbJRYxfBEv17Iec=; b=NHgNvSqyxFDtTfKefO3wZzInixNYNVC+mqDEKRDXxbPYs0mj4ibc3Zh6QiXfnc1vxD q+CzB5Lno69giX9xf9OdJYO1gVnLXhwihGBBq+EXPWibmcIsb7ZO7U4+aBsdA24I4Kcy 0e/23PT+mVORSVHSIpy2u4Y3K8aUDbnRUQCxU= MIME-Version: 1.0 In-Reply-To: <402bb451-9986-4a26-b606-6a1c3429f98e@s18g2000vby.googlegroups.com> References: <25422fc4-b2ba-41aa-b12a-5e2fdc989bab@j9g2000vby.googlegroups.com> <402bb451-9986-4a26-b606-6a1c3429f98e@s18g2000vby.googlegroups.com> Date: Mon, 9 Jan 2012 03:00:59 +1100 Subject: Re: Parallel Processing From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326038463 news.xs4all.nl 6893 [2001:888:2000:d::a6]:51345 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18673 On Mon, Jan 9, 2012 at 2:45 AM, Yigit Turgut wrote: > job1 = job_server.submit(test1,()) > job2 = job_server.submit(test2()) The first of these passes test1 and an empty tuple as arguments to submit(). The second calls test2 with no arguments, then passes its return value to submit(), which is not what you want to do. Chris Angelico