[Web-SIG] Proposal for asynchronous WSGI variant

Christopher Stawarz cstawarz at csail.mit.edu
Wed May 7 22:06:37 CEST 2008


On May 7, 2008, at 3:35 PM, Duncan McGreggor wrote:

> It's my understanding that greenlets are python, not C. Are you  
> thinking
> of tasklets in stackless?

The version for CPython is a C extension module.  Have a look at the  
comments in

   http://svn.red-bean.com/bob/greenlet/trunk/greenlet.c

The switching is accomplished by saving and restoring chunks of the C  
stack, which I find both extremely clever and kind of scary :)


Chris


More information about the Web-SIG mailing list