Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75234
| References | <tencent_1CC4554F04C01A7F6AB8300C@qq.com> <1127263876428011052.750696sturla.molden-gmail.com@news.gmane.org> |
|---|---|
| From | "水静流深" <1248283536@qq.com> |
| Subject | 回复: problem on multi-threading |
| Date | 2014-07-26 12:00 +0800 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12337.1406356418.18130.python-list@python.org> (permalink) |
[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
回复: problem on multi-threading "水静流深" <1248283536@qq.com> - 2014-07-26 12:00 +0800
csiph-web