Using map()

Joseph L. Casale jcasale at
Sun Nov 16 21:39:47 CET 2014

> I checked my modules with pylint and saw the following warning:
> W: 25,29: Used builtin function 'map' (bad-builtin)
> Why is the use of map() discouraged?
> It' such a useful thing.

The warning manifests from the opinion that a comprehension is
more suitable. You can disable the warning or you can convert your
usage to a comprehension. If you are interested, there is plenty of
info floating around given the above to arm you sufficiently to make
your own mind up.


More information about the Python-list mailing list