On 6 July 2010 21:02, Dirkjan Ochtman <dirk...@ochtman.nl> wrote:
> On Tue, Jul 6, 2010 at 12:50, Graham Dumpleton
> <graham.dumple...@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
_______________________________________________
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