Phillip J. Eby wrote: > I mean that you can't write a WSGI 2.0 application using a single > generator function, because it has to return a tuple, not an > iterator. This will discourage people from thinking "yield" is a > good way to build up their output, instead of using a StringIO or > ''.join() on a list of strings.
Could you explain why using 'yield' is not recommended? Just curious, because I use it all the time. Thanks, --Rob _______________________________________________ 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