.. _comparison-of-constants: comparison-of-constants / R0133 =============================== **Message emitted:** ``Comparison between constants: '%s %s %s' has a constant value`` **Description:** *When two literals are compared with each other the result is a constant. Using the constant directly is both easier to read and more performant. Initializing 'True' and 'False' this way is not required since Python 2.3.* **Problematic code:** .. literalinclude:: /data/messages/c/comparison-of-constants/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/c/comparison-of-constants/good.py :language: python Created by the `basic `__ checker.