bad-builtin / W0141#

Message emitted:

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.

Correct code:

numbers = [2 * x for x in [1, 2, 3]]

Problematic code:

numbers = list(map(lambda x: 2 * x, [1, 2, 3]))  # [bad-builtin]


This message is emitted by the optional 'deprecated_builtins' checker which requires the pylint.extensions.bad_builtin plugin to be loaded.

Created by the deprecated_builtins checker.