[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.


Raymond Hettinger


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

Reply via email to