Raymond Hettinger wrote:
[Steven Bethard]

and I often find myself alternating
between the two when I can't decide which one seems more Pythonic.

Both are pythonic.

Use a genexp when you need a generator
and use a listcomp when you need a list.

So do I read this right in preferring [<x> for <y> in <z>] over list(<x> for <y> in <z>) ?

STeVe
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to