.. _bad-builtin:

bad-builtin / W0141
===================

**Message emitted:**

Used builtin function %s

**Description:**

*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.*

**Problematic code:**

.. literalinclude:: /data/messages/b/bad-builtin/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/b/bad-builtin/good.py
   :language: python




.. note::
  This message is emitted by the optional :ref:`'deprecated_builtins'<pylint.extensions.bad_builtin>`
   checker which requires the ``pylint.extensions.bad_builtin`` plugin to be loaded.

Created by the `deprecated_builtins <https://github.com/PyCQA/pylint/blob/main/pylint/extensions/bad_builtin.py>`__ checker.