Generator using item[n-1] + item[n] memory
prometheus235 at gmail.com
Sat Feb 15 03:57:31 CET 2014
Ah, I think I was equating `yield` too closely with `return` in my head.
Whereas `return` results in the destruction of the function's locals,
`yield` I should have known keeps them around, a la C's `static` functions.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list