[Python-Dev] Re: Feature bloat in Python (was some PEP thing!)

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Sun, 23 Jul 2000 10:26:24 +0200

neil wrote:
> > j=3D[for k in a: if k%2: k*2] # list comprehensions
>    Maybe I'm trapped in my past here but my "sight reading" of list
> comprehensions brings back memories of BCPL which would have =
propagated the
> result of the loop (IIRC, the last expression evaluated within the =
loop) as
> the result of the expression. Its hardly obvious what this does based =
> experience with most current languages including C++, Java or VB.

and my "sight reading" of this is that j is an anonymous function
with a rather meaningless for-loop in it...