At 02:08 AM 9/19/2009 +0200, Armin Ronacher wrote:
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.

If an internal buffer was suitable to their application, they shouldn't have been using write() in the first place; it would suffice to "return [buffer]".

Unfortunately, many people seem to think that yield and write() are for returning pieces of a normal web page, rather than for doing server push and streaming files that are too big to go all-at-once.

_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to