.. _use-list-literal: use-list-literal / R1734 ======================== **Message emitted:** ``Consider using [] instead of list()`` **Description:** *Emitted when using list() to create an empty list instead of the literal []. The literal is faster as it avoids an additional function call.* **Problematic code:** .. literalinclude:: /data/messages/u/use-list-literal/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/u/use-list-literal/good.py :language: python Created by the `refactoring `__ checker.