ned at nedbatchelder.com
Mon Nov 17 01:24:42 CET 2014
On 11/16/14 7:09 PM, Steven D'Aprano wrote:
> Pavel Volkov wrote:
>> 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.
> That's a bug in pylint. It's not a bad builtin, it is perfectly fine.
> Some people don't like map. Pay no attention to them.
Pylint isn't useful until you've tailored the messages. Personally, I
avoid map, but your usage may vary. The pylint message that always
irked me was:
W0142: Used * or ** magic
"magic"? They're features of the language! Meanwhile, it doesn't mind
if you write multiply-inherited metaclasses....
Ned Batchelder, http://nedbatchelder.com
More information about the Python-list