Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.056 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'alias': 0.09; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:download': 0.16; 'wrote:': 0.16; 'received:74.125.82.44': 0.17; 'received:mail-ww0-f44.google.com': 0.17; 'header:In-Reply- To:1': 0.22; 'sep': 0.23; 'string': 0.26; 'message- id:@mail.gmail.com': 0.29; 'iterating': 0.30; '\xa0\xa0\xa0': 0.31; 'to:addr:python-list': 0.33; 'letter.': 0.34; 'fri,': 0.36; 'doing': 0.36; 'received:74.125.82': 0.38; 'received:google.com': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'received:74.125': 0.39; "it's": 0.40; 'your': 0.61; 'here': 0.65; '12:12': 0.84; 'for\xa0': 0.84 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:content-transfer-encoding; bh=e4zA0qXgiUw3fAyN3He5GY4je3U5q9WWgSJyCRAKYno=; b=WopG4x6rxFXp8GDVj1t6WdTXaQAjovbqrpFWrwDVOw7UCXZD2sRPa013yhZd7yVV85 XMOPR/pk5Lyi1plxzRnU8OOc80BbXb05NipmRMAgQvtQ1rjestkrQEgchhT8tk8W5IhH Y4gZDpXALeVr9OChs128cF3PUkCUF+M2x234s= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 9 Sep 2011 00:26:03 +1000 Subject: Re: wrap the queue to multiprocess download From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1315491965 news.xs4all.nl 2552 [2001:888:2000:d::a6]:54199 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12965 On Fri, Sep 9, 2011 at 12:12 AM, alias <1248283536@qq.com> wrote: > =A0=A0=A0 def=A0 __init__(self,arg): > =A0=A0=A0=A0=A0=A0=A0 for=A0 x=A0 in=A0 name: > > =A0=A0=A0 s=3Dwebdata('quote') What you're doing here is iterating over the letters in the string 'quote'. It's adding one job for each letter. Is that your intention? ChrisA