Re: [Twisted-Python] Using a custom reactor in twisted trial for test cases?

2009-11-02 Thread Paul Thomas
On 2 Nov 2009, at 07:22, Crispin Wellington wrote: > On Mon, 2009-11-02 at 01:12 -0500, Glyph Lefkowitz wrote: >> On Nov 1, 2009, at 11:17 PM, Crispin Wellington wrote: > >>> I tried using LoopingCall, but it does not work. It only calls the >>> scheduler once. I think this has to do with the fac

[Twisted-Python] Connect to an IRC server, modules.

2009-11-02 Thread Alberto Piu
Greetings, first of all, I apologize for bad english. I am new with Twisted, and although it seems very powerful, I'm having some problems in using it. I'm trying to create an IRC bot, which basically does nothing. My idea is to write a skeleton that's improved by modules, which do different

[Twisted-Python] reverse web proxy & threads

2009-11-02 Thread Artem Bokhan
Hello! I'm playing with reverse proxy from examples (Twisted-8.2.0/doc/web/examples/proxy.py). May somebody explain what part of code uses threads there? pstree -p | grep python -python(12786)-+-{python}(12795) |-{python}(13050) |-{python}(15547) `

[Twisted-Python] Ticket #3987 Review

2009-11-02 Thread sstein...@gmail.com
On Oct 29, 2009, at 11:05 PM, exar...@twistedmatrix.com wrote: >> Well...I've now spent some actual time with 886 (-2,-3,and -4), and >> also with 3987. >> >> While there is some very nice stuff in there, I'm really not sure how >> one would actually put it to use since the back-end and the front-

Re: [Twisted-Python] Using a custom reactor in twisted trial for test cases?

2009-11-02 Thread Andrew Francis
Crispin: >OK. Having a closer look, its not that looping call doesn't work, its >that there is some unknown number of "reactor pumps" between starting >the test, and finishing it. What I need is a way for the reactor to be >pumping away while a particular test function of a testcase continues >wor

Re: [Twisted-Python] Using a custom reactor in twisted trial for test cases?

2009-11-02 Thread Andrew Francis
Hello Glyph: >These examples aren't the greatest, because they tend to assume that >you _always_ have Stackless code that's ready to run, and you want to >run at some number of "frames per second".  In 2007, folks (especially myself) are still trying to figure out if Stackless can play with Twi

Re: [Twisted-Python] Ticket #3987 Review

2009-11-02 Thread exarkun
On 03:20 pm, sstein...@gmail.com wrote: >On Oct 29, 2009, at 11:05 PM, exar...@twistedmatrix.com wrote: >>>Well...I've now spent some actual time with 886 (-2,-3,and -4), and >>>also with 3987. >>> >>>While there is some very nice stuff in there, I'm really not sure how >>>one would actually put it

Re: [Twisted-Python] Ticket #3987 Review

2009-11-02 Thread sstein...@gmail.com
On Nov 2, 2009, at 6:07 PM, exar...@twistedmatrix.com wrote: > On 03:20 pm, sstein...@gmail.com wrote: >> On Oct 29, 2009, at 11:05 PM, exar...@twistedmatrix.com wrote: Well...I've now spent some actual time with 886 (-2,-3,and -4), and also with 3987. While there is some very

Re: [Twisted-Python] reverse web proxy & threads

2009-11-02 Thread Itamar Turner-Trauring (aka Shtull-Trauring)
On Mon, 2009-11-02 at 21:11 +0600, Artem Bokhan wrote: > Hello! > > I'm playing with reverse proxy from examples > (Twisted-8.2.0/doc/web/examples/proxy.py). May somebody explain what > part of code uses threads there? > > pstree -p | grep python > > -python(12786)-+-{python}(12795) >