python threads?
Cole Tuininga
colet-KCgK2vT7wad/90uGnh1m2w at public.gmane.org
Sun May 27 15:10:27 EDT 2007
On Sun, 2007-05-27 at 14:43 -0400, Martin Owens wrote:
> Eww, although that explains a lot; I tried to do threading for my http
> requests so my app wasn't waiting around for http round trips before
> loading.
This is a perfect legit use of python threading, IMHO. Since the call
is likely to block while waiting for the IO (make sure you don't set up
non-blocking sockets or you'll lose the benefit), why not let some other
code execute?
> Now I get segment faults intermittently and a whole bunch of other weird things.
Stack traces and execution termination or actual seg faults? Seg faults
are an indication of bigger problems - you shouldn't be able to seg
fault the python interpreter without outside help (an external C lib,
hardware problems, etc)
--
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Cole Tuininga
colet-KCgK2vT7wad/90uGnh1m2w at public.gmane.org
http://www.code-energy.com/
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list