Sunday, 17 August 2014

Generators in Python

Generators in Python were proposed in PEP 255 and integrated into the language via the yield keyword. Used in conjunction with the while loop, generators can be used create function objects yielding infinite sequences.

Neil Schemenauer is one of the co-authors of the PEP (2 to the power 8, minus 1).

No comments: