On Nov 22, 3:26 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > This sounds like a case for writing a generator. Try this one: [...]
Thanks, Duncan! Really cool & useful. And yield is the Ruby way, too! (Wayne -- :P). Cheers, Alexy -- http://mail.python.org/mailman/listinfo/python-list