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


Groups > comp.lang.python > #75234

回复: problem on multi-threading

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <1248283536@qq.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.340
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.35; '*S*': 0.03; 'attribute': 0.07; 'thread': 0.14; '8bit%:32': 0.16; 'wrote:': 0.18; '>>>': 0.22; '&gt;&gt;&gt;': 0.24; 'subject:problem': 0.24; '&gt;': 0.26; 'skip:" 40': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'url:mailman': 0.30; "skip:' 10": 0.31; '"",': 0.31; 'file': 0.32; 'url:python': 0.33; '(most': 0.33; 'to:name:python-list': 0.33; 'problem': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'method': 0.36; 'url:org': 0.36; 'skip:- 20': 0.37; 'skip:& 10': 0.38; '8bit%:86': 0.38; 'to:addr:python-list': 0.38; 'skip:- 10': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'skip:x 10': 0.40; 'url:mail': 0.40; 'skip:2 20': 0.60; 'from:charset:utf-8': 0.61; 're:': 0.63; 'skip:n 10': 0.64; 'to:addr:gmail.com': 0.65; 'skip:m 50': 0.68; '8bit%:92': 0.71; 'subjectcharset:utf-8': 0.72; 'from:addr:1248283536': 0.84; 'from:addr:qq.com': 0.84; 'message- id:@qq.com': 0.84; 'received:qq.com': 0.84; 'x-mailer:qqmail 2.x': 0.84; '8bit%:67': 0.93; 'received:183': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1406349073; bh=AyRWkpmMuZ/37yxkJKWR+pJXHIyP/QD56BeGWaqmv+U=; h=X-QQ-FEAT:X-QQ-SSF:X-HAS-ATTACH:X-QQ-BUSINESS-ORIGIN: X-Originating-IP:In-Reply-To:References:X-QQ-STYLE:X-QQ-mid:From:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:Date: X-Priority:Message-ID:X-QQ-MIME:X-Mailer:X-QQ-Mailer: X-QQ-ReplyHash:X-QQ-SENDSIZE; b=birlGA5rD5dFDh/AsaSgQDvzcbVIsy8t3u2nRYM8wTjXSW3zyiDk6g2DtxCrG5NB3 BQADly6gmJZXdVSVCBiMGafmGFNahgIh+7+s3tOGKT5xcIFvMNxMeH24fE5sXBtCmX l3CstoefrPEN7MRQLdk4dZIH02HYzh6AJznA4BcY=
X-QQ-FEAT zaIfg0hwV2qzpTqH4CVqkC/tg3F1tCYUGgUIYxQd4MU=
X-QQ-SSF 00010000000000F000000000000000D
X-HAS-ATTACH no
X-QQ-BUSINESS-ORIGIN 2
X-Originating-IP 221.182.18.2
In-Reply-To <1127263876428011052.750696sturla.molden-gmail.com@news.gmane.org>
References <tencent_1CC4554F04C01A7F6AB8300C@qq.com> <1127263876428011052.750696sturla.molden-gmail.com@news.gmane.org>
X-QQ-STYLE
X-QQ-mid webmail603t1406347218t289237
From "水静流深" <1248283536@qq.com>
To "Sturla Molden" <sturla.molden@gmail.com>, "python-list" <python-list@python.org>
Subject 回复: problem on multi-threading
Mime-Version 1.0
Content-Type multipart/alternative; boundary="----=_NextPart_53D327D2_093150B8_690AAA6C"
Content-Transfer-Encoding 8Bit
Date Sat, 26 Jul 2014 12:00:18 +0800
X-Priority 3
X-QQ-MIME TCMime 1.0 by Tencent
X-Mailer QQMail 2.x
X-QQ-Mailer QQMail 2.x
X-QQ-ReplyHash 3324062645
X-QQ-SENDSIZE 520
X-Mailman-Approved-At Sat, 26 Jul 2014 08:33:37 +0200
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12337.1406356418.18130.python-list@python.org> (permalink)
Lines 57
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1406356418 news.xs4all.nl 2918 [2001:888:2000:d::a6]:47894
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75234

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

>>> x=webdata(name)
>>> x.start()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'webdata' object has no attribute 'start'‍

There is a relation with  jobs.join() method in threading module,your answer is wrong.




------------------ 原始邮件 ------------------
发件人: "Sturla Molden";<sturla.molden@gmail.com>;
发送时间: 2014年7月26日(星期六) 凌晨4:04
收件人: "python-list"<python-list@python.org>; 

主题: Re: problem on multi-threading



"水静流深" <1248283536@qq.com> wrote:

> name=['600000', '000001', '600319', '600531','600661', '600983', '600202', '600149']
> x=webdata(name)
> x.run()‍
> 
> never quit from the thread ,why?

Call .start() instead of .run()

-- 
https://mail.python.org/mailman/listinfo/python-list

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


Thread

回复: problem on multi-threading "水静流深" <1248283536@qq.com> - 2014-07-26 12:00 +0800

csiph-web