Re: tasklet library based on PEP 0342

2009-01-19 Thread charlie137
On Jan 20, 6:37 am, Terry Reedy wrote: > charlie...@gmail.com wrote: > > Using new features of python generators, as described in PEP 0342, it > > is possible to write some sort of "tasklets" in a maner very similar > > to stackless python, but running on cpython. For example : > > > @tasklet > >

Re: tasklet library based on PEP 0342

2009-01-19 Thread Terry Reedy
charlie...@gmail.com wrote: Using new features of python generators, as described in PEP 0342, it is possible to write some sort of "tasklets" in a maner very similar to stackless python, but running on cpython. For example : @tasklet def my_task(): yield Timer(10) yield "result" @task

Re: tasklet library based on PEP 0342

2009-01-19 Thread Gabriel Genellina
En Mon, 19 Jan 2009 09:59:17 -0200, escribió: Using new features of python generators, as described in PEP 0342, it is possible to write some sort of "tasklets" in a maner very similar to stackless python, but running on cpython. For example : [...] This kind of tool is very useful, but unfortu

tasklet library based on PEP 0342

2009-01-19 Thread charlie137
Hello all, Using new features of python generators, as described in PEP 0342, it is possible to write some sort of "tasklets" in a maner very similar to stackless python, but running on cpython. For example : @tasklet def my_task(): yield Timer(10) yield "result" @tasklet def other_task(