forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
75 lines (61 loc) · 695 Bytes
/
Copy pathtest.py
File metadata and controls
75 lines (61 loc) · 695 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
n = None
t = True
f = False
n
t
f
if n:
t
else:
f
def foo():
n = None
t = True
f = False
n
t
f
if n:
t
else:
f
not n
not t
not f
if t == f:
t
else:
f
if t is not f:
t
else:
f
w = 2
x = 3
y = 4
z = 5
17
-3
47164510561934056134523419250 # Too big
x < y
if x < w:
x
y
else:
w
z
if unknown():
v = 10
else:
v = 20
if v > 15:
v
else:
v
def strings():
version = "3.8 alpha"
"a string"
if version >= "3":
":)"
else:
":("