Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 280 Bytes

comparison-of-constants.md

File metadata and controls

7 lines (4 loc) · 280 Bytes

Pattern: Comparison of constants

Issue: -

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.