Generator Expressions
New In Python 2.4
Syntax
(expr for iter_var in iterable)
(expr for iter_var in iterable if cond_expr)
References
[1] PEPS@Python Developer's Guide, PEP 289 -- Generator Expressions
New In Python 2.4
(expr for iter_var in iterable)
(expr for iter_var in iterable if cond_expr)
[1] PEPS@Python Developer's Guide, PEP 289 -- Generator Expressions