2017-05-09 01:49:19 +01:00
|
|
|
# test memoryview accessing maximum values for signed/unsigned elements
|
|
|
|
try:
|
|
|
|
from array import array
|
|
|
|
memoryview
|
|
|
|
except:
|
|
|
|
print("SKIP")
|
2017-06-10 18:03:01 +01:00
|
|
|
raise SystemExit
|
2017-05-09 01:49:19 +01:00
|
|
|
|
|
|
|
print(list(memoryview(array('i', [0x7f000000, -0x80000000]))))
|
|
|
|
print(list(memoryview(array('I', [0x7f000000, 0x80000000, 0x81000000, 0xffffffff]))))
|