blob: 4c98de6e88a1c2a800f0629c4913b7e740019419 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# pylint: disable=missing-docstring, comparison-with-itself, invalid-name
while 2 == 2: # [comparison-of-constants]
pass
while 2 > 2: # [comparison-of-constants]
pass
n = 2
if 2 != n:
pass
if n != 1 + 1:
pass
if True == True: # [comparison-of-constants, singleton-comparison]
pass
CONST = 24
if 0 < CONST < 42:
pass
if 0 < n < 42:
pass
if True == n != 42:
pass
if 0 == n != 42:
pass
print(0 < n < 42)
print(0 <= n < 42 )
print(n < 1 < n*42 < 42)
print(42> n <= 0)
print(0 == n > 42)
|