[Python-Dev] Re: Feature bloat in Python (was some PEP thing!)
Fredrik Lundh" <firstname.lastname@example.org
Sun, 23 Jul 2000 10:26:24 +0200
> > 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 =
> result of the loop (IIRC, the last expression evaluated within the =
> 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...