回复: problem on multi-threading
水静流深
1248283536 at qq.com
Sat Jul 26 00:00:18 EDT 2014
>>> 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 at gmail.com>;
发送时间: 2014年7月26日(星期六) 凌晨4:04
收件人: "python-list"<python-list at python.org>;
主题: Re: problem on multi-threading
"水静流深" <1248283536 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140726/7a21d718/attachment.html>
More information about the Python-list
mailing list