Re: [BangPypers] Co-operating threads

2010-10-25 Thread Anomit Ghosh
On Mon, Oct 25, 2010 at 1:10 PM, Senthil Kumaran wrote: > I don't see the interaction of eventlet and GreenPool in this > snippet. How does it happen? > Whoops, really sorry about that. I was trying something else with GreenPool. Forgot to remove that line. -- Anomit Ghosh _

Re: [BangPypers] Co-operating threads

2010-10-25 Thread Senthil Kumaran
On Sun, Oct 24, 2010 at 08:42:29PM +0530, Anomit Ghosh wrote: > I took a look at the code you pasted and tried to quickly convert it > into a script[1] that uses eventlet. It's been quite some time since I > [1] http://dpaste.de/hd05/ I don't see the interaction of eventlet and GreenPool in this

Re: [BangPypers] Co-operating threads

2010-10-25 Thread Vishal
Hi, I have greenlets on my system, but I dont see any info about gevent or eventlet on Windows. The websites all talk in terms of Linux, MacOsX etc... Do you know if the same are available on Windows too? or any kind of such framework for Windows. Thanks and best regards, Vishal Sapre On Sun, O

Re: [BangPypers] Co-operating threads

2010-10-24 Thread Anomit Ghosh
I took a look at the code you pasted and tried to quickly convert it into a script[1] that uses eventlet. It's been quite some time since I used eventlet like the way it's meant to be and I believe there might be another more efficient way of getting this done. But anyway, it reduces the lines of c

Re: [BangPypers] Co-operating threads

2010-10-20 Thread Senthil Kumaran
On Wed, Oct 20, 2010 at 6:51 PM, Anand Balachandran Pillai wrote: > 3. If you have any experience with countless other Python concurrency > libraries for solving problems like this ? I recently had chance to use twisted.internet.task.Cooperator for doing a large file transfers in parallel with ha

Re: [BangPypers] Co-operating threads

2010-10-20 Thread Anomit Ghosh
Talking of co-operating "threads", I like the idea of greenthreads implemented with the help of greenlets[1] in eventlet [2]. Another similar library is gevent[3] that uses a "hub" like eventlet but that purely uses libevent. You can leave the scheduling upto the hubs in both these libraries which