PEP 255: Simple Generators
Neil Schemenauer
nas at python.ca
Sun Jun 24 19:08:38 EDT 2001
Glyph Lefkowitz wrote:
> New users should not be using generators -- it's an advanced control
> structure with some interesting uses, [...]
I strongly disagree with this point. New users SHOULD be using
generators. I believe they are applicable in a surprising number of
causes and are no harder for new users to learn than a number of other
language features. They are certainly simpler than threads.
Neil
More information about the Python-list
mailing list