What is a list compression in Python?
Stephen Hansen
apt.shansen at gmail.com
Wed Jan 20 02:34:18 EST 2010
On Tue, Jan 19, 2010 at 11:32 PM, Stephen Hansen <apt.shansen at gmail.com>wrote:
>
> I really don't think you can call comprehensions as mere syntactic sugar,
>
Err, I misspoke.
I don't really think you can call comprehensions mere syntactic sugar /for
map and filter/.
It IS mere syntactic sugar for a "for loop".
But not for the functional equivalent.
--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100119/7f4783ed/attachment-0001.html>
More information about the Python-list
mailing list