any() and all() shorthand

castironpi at gmail.com castironpi at gmail.com
Mon Jan 7 14:02:40 EST 2008


> You are too late, any and all are built-in into python 2.5

Hi, excellent.  Now how about something more generic, possibly:

[ x.y() for x or _next_ in c ]

where the context of _next_ is limited in complexity, and/or can only
occur in a generator?



More information about the Python-list mailing list