Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.044 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'needed,': 0.05; 'does,': 0.09; "wouldn't": 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:which': 0.16; 'thread.': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'code.': 0.20; 'cloud': 0.20; "i've": 0.23; 'idea': 0.24; 'header:In-Reply-To:1': 0.25; 'message- id:@mail.gmail.com': 0.27; 'fine': 0.28; '"the': 0.29; 'probably': 0.29; 'maybe': 0.29; 'fri,': 0.30; 'function': 0.30; 'code': 0.31; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'should': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'details': 0.63; 'subject:. ': 0.66; '2013': 0.84; 'actually,': 0.84; 'edge,': 0.84; 'positively': 0.84; 'url:show': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=RrywT10RvpZKYfjimBkHuylOJDvuQ/OSkjUsNrTDlCs=; b=WonEb/pIbRKP4zvZ/JyWUZ045xyRlgCwIzzl5NAGOpPJ552Gm5tfuyEbbe3kbLTTwb 5bENDVa6jatCLkEV5+UfrZgBEd8lA5i/oFnt+XcRYTwiDgoCZ0/KwDelH/a1owO1R9qd SBkVlHkc2j/TJOgmjHcYTIwWRtZasXZJk8PF32QsfmxcMV8+xrb1Jf1JHYJnjgKe5HFM ZRu2bJpz2gWAWBw0T5y6EQ+yDHRcvGuvUa53Jl/6/qbAAPTi7YJzhCajHfy7L3Mof9xs dwxVEMxJVAEpzR1lbTiPskxVQdINt8Tf/f95sDGIbmLFRmtV6Kt7YNQseFn2tVOLfHzB Y3vA== MIME-Version: 1.0 X-Received: by 10.221.11.205 with SMTP id pf13mr5034533vcb.70.1360304983712; Thu, 07 Feb 2013 22:29:43 -0800 (PST) In-Reply-To: References: Date: Fri, 8 Feb 2013 17:29:43 +1100 Subject: Re: which situations should we use thread. join() ? 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.15 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360304991 news.xs4all.nl 6983 [2001:888:2000:d::a6]:42469 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38422 On Fri, Feb 8, 2013 at 3:32 PM, iMath wrote: > which situations should we use thread. join() ? > http://bpaste.net/show/yBDGfrlU7BDDpvEZEHmo/ > why do we not put thread. join() in this code ? I've no idea why you don't put thread.join() in that code. Maybe because it isn't needed, maybe because someone likes to live on the edge, maybe it's not so much "the edge" as positively cloud cuckoo land. When should you use it? When you want to accomplish what the function does, the details of which can be found in the Fine Manual. Actually, you probably know already what it does, or you wouldn't even be asking. ChrisA