[Web-SIG] Sketching a WSGI 2-to-1 adapter with greenlets

Armin Ronacher armin.ronacher at active-4.com
Sat Sep 19 02:08:03 CEST 2009


P.J. Eby schrieb:
> newer spec.  On CPython at least, this can be implemented using 
> greenlets, and on other Python implementations it could be done with 
> threads.  Here's a quick and dirty, untested sketch (no error 
> checking, no version handling) of how it could be done with greenlets:
greenlets are one solution, but I don't think there are any applications
out there using write() that are worth supporting in WSGI 2.0.  Such
applications should rather use an internal buffer and write to that.


More information about the Web-SIG mailing list