PEP-xxx: Unification of for statement and list-comp syntax

gangesmaster tomerfiliba at gmail.com
Sun May 21 20:52:24 CEST 2006


> Today you can archive the same effect (but not necessarily with the same
> performance) with:
>
> for node in (x for x in tree if x.haschildren()):
>     <do something with node>

true, but it has different semantic meanings


-tomer




More information about the Python-list mailing list