[FP] Rewriting name bindings as expressions
Dr. David Mertz
mertz at gnosis.cx
Fri May 25 00:20:29 EDT 2001
Greg Ewing <see at my.signature> wrote:
> ans = [y+1 for x in range(10) for y in (x*x,)]
Wow. Richard had written me before posting to the list, and I did not
have any idea for improving on his examples. I don't think this form
would have ever occurred to me... but now that I see it, I am simply
shocked by its obviousness and clarity.
Yours, David...
More information about the Python-list
mailing list