summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/array_add.py
blob: 41cd77b428e47f9850bf67862993dcab744b3deb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# test array + array
try:
    import array
except ImportError:
    import sys
    print("SKIP")
    sys.exit()

a1 = array.array('I', [1])
a2 = array.array('I', [2])
print(a1 + a2)

a1 += array.array('I', [3, 4])
print(a1)

a1.extend(array.array('I', [5]))
print(a1)