On Tue, Jul 6, 2010 at 12:50, Graham Dumpleton <[email protected]> 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. Cheers, Dirkjan _______________________________________________ Web-SIG mailing list [email protected] Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
