.. _eval-used: eval-used / W0123 ================= **Message emitted:** ``Use of eval`` **Description:** *Used when you use the "eval" function, to discourage its usage. Consider using `ast.literal_eval` for safely evaluating strings containing Python expressions from untrusted sources.* **Problematic code:** .. literalinclude:: /data/messages/e/eval-used/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/e/eval-used/good.py :language: python Created by the `basic `__ checker.