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


Groups > comp.lang.python > #75234 > unrolled thread

回复: problem on multi-threading

Started by"水静流深" <1248283536@qq.com>
First post2014-07-26 12:00 +0800
Last post2014-07-26 12:00 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#75234 — 回复: problem on multi-threading

From"水静流深" <1248283536@qq.com>
Date2014-07-26 12:00 +0800
Subject回复: problem on multi-threading
Message-ID<mailman.12337.1406356418.18130.python-list@python.org>

[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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web