David E. Konerding DSD staff wrote: > The easiest approach, though, is to use the threadedselectreactor in Twisted > (you need > to check the HEAD branch out with subversion, because that reactor isn't > included in any releases). > With threadedselectreactor, it's easy to incorporate both the GUI event loop > and the twisted reactor. > Twisted already includes lots of code for doing asynchronous callback-style > IO for > IO bound processes like downloading. Further, you don't even think in an > explicitly threaded way- > createing a whole thread just to manage a download process which is motly IO > and a little bookkeeping is > silly. Twisted's approach just makes a lot more sense and simplifies the > code too.
Or, don't use threadedselectreactor, but instead just use normal threading and reactor.callFromThread. -- http://mail.python.org/mailman/listinfo/python-list