Comprehensions, Where Art Thou?

Kevin Smith zenparsing at
Mon Aug 11 13:08:55 PDT 2014

> (Man, now that I've looked at these for a bit, I really see the logic of
> Python putting the value *before* the for.  It gives you an examplar value
> of what the array will look like, right up front, before sliding in the
> "and here's how you make the rest of them!" indicator.  It also means that
> all three constructions have the cross() call, the important part, lined up
> in front so you can see the parallel structure more easily.  This really
> helps me comprehend the code, no pun intended.)

I agree - having the "for" in front makes it harder to read.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list