[Twisted-Python] wxreactor: dead close button

Bob Ippolito bob at redivi.com
Tue Jun 7 22:46:14 EDT 2005

On Jun 7, 2005, at 7:14 PM, Jp Calderone wrote:

> On Tue, 07 Jun 2005 21:34:26 -0400, Glyph Lefkowitz  
> <glyph at divmod.com> wrote:
>> Bob Ippolito wrote:
>>> Why not just use the threadedselectreactor?
>>> <http://bob.pythonmac.org/archives/2005/04/17/twisted-and- 
>>> foreign- event- loops/>
>> Mary, perhaps the docs should start referring to this for the next  
>> minor release?  Can you start bothering someone to update the  
>> reactor selection documentation?  (Or has it been already?)
> Shining wonder though it may be, threaded select reactor is still  
> missing some niceties - for example, unit tests.  It would be nice  
> to have both documentation and tests before encouraging (well, any  
> more than has been done) the world that tsr is the greatest thing  
> since sliced bread.

It's not the greatest thing since sliced bread, but it sucks a lot  
less than the other reactors which also aren't tested very well..  
since it's just a very small fork of the extremely stable, default,  
select reactor.

> There is also the matter of threaded non-select reactors.  What do  
> I do if I want poll?  (The answer right now is "write threaded poll  
> reactor" which is fine if _I_ am asking the question, but less than  
> ideal from most people's perspective).

The real answer is to extend the reactor interface so that all  
reactors can support the interleave API, and put the logic that deals  
with the threads somewhere else.. e.g. twisted.internet.interleave 
(reactor, function).


More information about the Twisted-Python mailing list