[Python-Dev] Re: Adding any() and all()

2005-03-12 Thread Nicolas Fleury
Reinhold Birkenfeld wrote: """ He proposes that [x in list if x > 0] (which is currently undefined) be exactly equal to: [x for x in list if x > 0] """ What about that? But [x in list] means already something. Supporting [x in list if condition] will complicate the parser and will be error-prone i

[Python-Dev] Re: Adding any() and all()

2005-03-11 Thread Reinhold Birkenfeld
Guido van Rossum wrote: > See my blog: http://www.artima.com/forums/flat.jsp?forum=106&thread=98196 > > Do we even need a PEP or is there a volunteer who'll add any() and all() for > me? There is an interesting proposal in the forum: """ He proposes that [x in list if x > 0] (which is current