more on "Is this considered black magic?"

Gustavo Niemeyer niemeyer at conectiva.com
Mon Dec 3 08:02:41 EST 2001


[...]
> results = map( lambda o: o.method( args), objects)

What about this:

results = [o.method(args) for o in objects]

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20011203/b9027cce/attachment.sig>


More information about the Python-list mailing list