2014-11-29 19:00:55 -05:00
|
|
|
# test array + array
|
2017-01-06 17:13:40 -05:00
|
|
|
try:
|
2023-08-22 11:15:46 -04:00
|
|
|
import array
|
2017-01-06 17:13:40 -05:00
|
|
|
except ImportError:
|
2023-08-22 11:15:46 -04:00
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
2014-11-29 19:00:55 -05: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)
|