bad-builtin / W0141#
Used builtin function %s
Used when a disallowed builtin function is used (see the bad-function option). Usual disallowed functions are the ones like map, or filter , where Python offers now some cleaner alternative like list comprehension.
numbers = list(map(lambda x: 2 * x, [1, 2, 3])) # [bad-builtin] print(numbers)
numbers = [2 * x for x in [1, 2, 3]] print(numbers)
[MAIN] load-plugins = pylint.extensions.bad_builtin
- This message is emitted by the optional 'deprecated_builtins'
checker which requires the
pylint.extensions.bad_builtinplugin to be loaded.
Created by the deprecated_builtins checker.