On Mon, 25 Apr 2011 16:26:37 -0700, Paul Rubin wrote:

> Chris Angelico <ros...@gmail.com> writes:
>> results = [function() for function in actions]
> 
> results = map(apply, actions)

Sadly not in Python 3, where map is lazy and you need to add a call to 
list to make it equivalent to the list comp.



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

Reply via email to