[Web-SIG] Emulating req.write() in WSGI

Graham Dumpleton graham.dumpleton at gmail.com
Tue Jul 6 13:22:23 CEST 2010


On 6 July 2010 21:02, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:
> On Tue, Jul 6, 2010 at 12:50, Graham Dumpleton
> <graham.dumpleton at gmail.com> wrote:
>> In the code example I posted I never had a 'return' statement in same
>> function as 'yield'. You shouldn't be mixing the two.
>
> Well, you can still use bare "return" as a way of raising StopIteration.

True. It was just easier to say not to and avoid any chance of
misunderstanding. :-)

Graham

"There's something very important I forgot to tell you. Don't cross
the streams… It would be bad… Try to imagine all life as you know it
stopping instantaneously and every molecule in your body exploding at
the speed of light."
—Egon Spengler on crossing proton streams


More information about the Web-SIG mailing list