Threads in python?

Peter Hansen peter at engcorp.com
Mon Feb 25 19:33:53 EST 2002


"Fernando Rodríguez" wrote:
> 
> I'm going to start coding a little utility that needs to retrieve webpages and
> process them.
> 
> However, I worried that the whole app might stall if one server takes too long
> to respond or is offline.
> 
> Does Python support threads? "Learning Python" doesn't mention it...

See http://www.python.org/doc/current/lib/module-threading.html .

(Yes, Python supports threads.  There may, however, be simpler and/or
more robust approaches to what you are doing, although I personally
would just jump on threads since I grok them better than, for example,
asyncore.)

-Peter



More information about the Python-list mailing list