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

results matching ""

    No results matching ""