[Twisted-Python] Re: [Twisted-commits] r13090 - Use ThreadedResolver instead of BlockingResolver by default - the thread import issue is moot, PyOpenSSL imports thread unconditionally.

Itamar Shtull-Trauring itamar at itamarst.org
Tue Mar 8 15:06:49 EST 2005

On Tue, 2005-03-08 at 19:18 +0000, Jp Calderone wrote:

>   I don't have access to a platform without threading support.  There
> isn't even a buildslave running on one. 

That doesn't mean you ought to *break* it. Can't you put the
installation of ThreadedResolver in as a try/except over import thread?
Or can we have twisted.python.runtime.threadingSupported()? or
something. But we oughtn't break support for non-threaded platforms when
it's easy enough to test for it (sys.module["thread"] = None and then
run code as usual).

More information about the Twisted-Python mailing list