Re: Event Driven programming - Doubts

2008-12-22 Thread Bryan Olson
Kottiyath wrote: [...] I have not yet understood the implementation of deferred. I went through a lot of tutorials, but I guess most places they expect that the user already understands how events are generated. The tutorials mention that there is no more threads once twisted is used. My que

Re: Event Driven programming - Doubts

2008-12-22 Thread James Mills
On Tue, Dec 23, 2008 at 12:57 AM, Kottiyath wrote: > Hi, >I have been looking at Twisted and lately Circuits as examples for > event driven programming in Python. Wonderful! :) "circuits" that is :) >Even though I understood how to implement the code in these and > what is deferred etc,

Re: Event Driven programming - Doubts

2008-12-22 Thread David Stanek
On Mon, Dec 22, 2008 at 9:57 AM, Kottiyath wrote: > > If so, Even though data locking etc is not a problem, are we not still > having threads? Will it not still cause scalability problems in high > traffic? > If not, could somebody let me know how it is done? This somewhat depends on the applicat

Re: Event Driven programming - Doubts

2008-12-22 Thread Jean-Paul Calderone
On Mon, 22 Dec 2008 06:57:55 -0800 (PST), Kottiyath wrote: Hi, I have been looking at Twisted and lately Circuits as examples for event driven programming in Python. [snip] My question is as follows: I have not understood how the callbacks are hit without (a) blocking the code or (b)

Event Driven programming - Doubts

2008-12-22 Thread Kottiyath
Hi, I have been looking at Twisted and lately Circuits as examples for event driven programming in Python. Even though I understood how to implement the code in these and what is deferred etc, I have not yet understood the implementation of deferred. I went through a lot of tutorials, but I