The Google Python Style guide does not say
prefer list comprehensions and for loops instead of filter, map, and
reduce
Rather, the full sentence reads,
Use list comprehensions and for loops instead of filter and map when
the function argument would have been an inlined lambda anyway. (my emphasis)
So it is not recommending that you completely avoid using map, for instance -- only that
[expression(item) for item in iterable]
is preferable to
map(lambda item: expression(item), iterable)
In this case it is clear that the list comprehension is more direct and readable.
On the other hand, there is nothing wrong with using map like this:
map(str, range(100))
instead of the longer-winded
[str(item) for item in range(100)]
It performs well to boot:
In [57]: %timeit map(str,range(100))
100000 loops, best of 3: 12.6 us per loop
In [58]: %timeit [str(item) for item in range(100)]
100000 loops, best of 3: 17 us per loop