substituting list comprehensions for map()
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Mon Nov 2 03:49:34 EST 2009
Ben Finney a écrit :
(snip)
> Yes, just about any ‘map()’ operation has a corresponding list
> comprehension.
Right AFAICT, but:
> (Does anyone know of a counter-example, a ‘map()’
> operation that doesn't have a correspondingly simple list
> comprehension?)
... depends on your definition of "simple". There are things I'd rather
not write as a list comprehension...
More information about the Python-list
mailing list