threads only called once?

Steve Holden sholden at holdenweb.com
Wed Aug 7 16:03:29 CEST 2002


"Aahz" <aahz at pythoncraft.com> wrote in message
news:air62c$me6$1 at panix1.panix.com...
> In article <3d50bee4.90759015 at News.CIS.DFN.DE>,
> Gerson Kurz <moc.q-dnan-p at p-nand-q.com> wrote:
> >On Tue, 06 Aug 2002 13:51:00 GMT, "Ian McMeans" <imcmeans at telus.net>
> >wrote:
> >>
> >>Why can't the thread be started again if it's not alive (ie not
running)? Am
> >>I missing something here?
> >
> >I run into that, too, and I felt its pretty stupid. (Why! this
> >limitation. It can't be just because the documentation says "at most
> >once", it has to have a technical reason).
>
> Because the thread is dead -- don't mistake the class instance for the
> underlying construct it proxies.  In a similar way, you can't re-use a
> socket once it's closed; you have to re-open it.


Reading and following the documentation is just too much trouble. Why
doesn't Python do what I want?

regards
-----------------------------------------------------------------------
Steve Holden                                 http://www.holdenweb.com/
Python Web Programming                http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------








More information about the Python-list mailing list