[Python-ideas] for-loop-if like list comps have?
Christopher Welborn
cjwelborn at live.com
Sat Mar 15 18:13:16 CET 2014
On 03/14/2014 09:43 PM, Andrew Barnert wrote:
> [x for xs in xss for x in xs]
> [x for x in xs if x if x-1]
> [x for xs in xss if xs for x in xs if x]
>
> Should you be able to write all of those as one-liner statements?
Fair enough. No I wouldn't like any of those, but thanks
for making things clearer for me.
--
\¯\ /¯/\
\ \/¯¯\/ / / Christopher Welborn (cj)
\__/\__/ / cjwelborn at live·com
\__/\__/ http://welbornprod.com
More information about the Python-ideas
mailing list