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

Felipe Almeida Lessa felipe.lessa at gmail.com
Sun May 21 20:57:33 CEST 2006


Em Dom, 2006-05-21 às 11:52 -0700, gangesmaster escreveu:
> > 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
> 

I know, that's also why I don't oppose the PEP.

-- 
Felipe.




More information about the Python-list mailing list