-
Notifications
You must be signed in to change notification settings - Fork 1
/
debug_mutableint.py
85 lines (82 loc) · 1.6 KB
/
debug_mutableint.py
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
75
76
77
78
79
80
81
82
83
84
85
import pprint
from mutableint import *
y = MutableInt(1234)
y.abc = 'hello'
a = copy.copy(y)
a.abc
a
#print(hex(y))
#print(hex(6))
#
#d = {}
#d[y] = 10
#pprint.pprint(d)
#
#print(d[y])
#print(d[6])
#
#print('---')
#a = MutableInt(0)
#mutable_int_utils.print_int_info(a)
#get_raw(a, 'a')
#print('---')
#mutable_int_utils.copy_int(a,6)
#mutable_int_utils.print_int_info(a)
#get_raw(a, 'a')
#print('---')
#mutable_int_utils.copy_int(a,100000)
#mutable_int_utils.print_int_info(a)
#get_raw(a, 'a')
#print('---')
#mutable_int_utils.copy_int(a,-1)
#mutable_int_utils.print_int_info(a)
#get_raw(a, 'a')
#print('---')
#mutable_int_utils.copy_int(a,-200)
#mutable_int_utils.print_int_info(a)
#get_raw(a, 'a')
#print('---')
#a = 0
#mutable_int_utils.print_int_info(a)
#get_raw(a, 'a')
#b = MutableInt(0)
#mutable_int_utils.print_int_info(b)
#get_raw(b, 'b')
#mutable_int_utils.copy_int(b,a)
#
#print(b+5)
#print(5+b)
#
#mutable_int_utils.print_int_info(b)
#get_raw(b, 'b')
#mutable_int_utils.copy_int(b,-0x87654321)
#mutable_int_utils.print_int_info(b)
#get_raw(b, 'b')
#b.set(0x98765432)
#mutable_int_utils.print_int_info(b)
#get_raw(b, 'b')
#
#print(b+5)
#print(5+b)
#
#print('---')
#c = MutableInt(-10)
##mutable_int_utils.print_int_info(c)
#mutable_int_utils.copy_int(c,-10)
#mutable_int_utils.print_int_info(c)
#get_raw(c, 'c')
#mutable_int_utils.copy_int(c,0)
#mutable_int_utils.print_int_info(c)
#get_raw(c, 'c')
#mutable_int_utils.copy_int(c,1)
#print(c+5)
#print(5+c)
#
#x1 = MutableInt(0)
#x2 = MutableInt(0)
#x3 = MutableInt(0)
#x4 = MutableInt(0)
#x5 = MutableInt(0)
#x6 = MutableInt(0)
if __name__ == '__main__':
unittest.main()