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():

Re: tasklet library based on PEP 0342

2009-01-19 Thread charlie137
On Jan 20, 6:37 am, Terry Reedy tjre...@udel.edu 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