Using map()
Joseph L. Casale
jcasale at activenetwerx.com
Sun Nov 16 15:39:47 EST 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.
jlc
More information about the Python-list
mailing list