how to make a generator use the last yielded value when it regains control
John Salerno
johnjsal at NOSPAMgmail.com
Fri Apr 7 10:22:33 EDT 2006
Lonnie Princehouse wrote:
> Here's my take on the thing. It only prints one term, though.
>
> http://www.magicpeacefarm.com/lonnie/code/morris.py.html
>
> (a bit too long to post)
>
yikes, scary! :)
there was always the hint that using itertools might be helpful, as you
guys are doing, but i could never quite figure out how, but looking at
these alternate methods is definitely helpful
More information about the Python-list
mailing list