2014-11-29 17:00:55 -07:00
|
|
|
# test array + array
|
2017-01-06 15:13:40 -07:00
|
|
|
try:
|
|
|
|
import array
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
2017-06-10 11:03:01 -06:00
|
|
|
raise SystemExit
|
2014-11-29 17:00:55 -07:00
|
|
|
|
|
|
|
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)
|