print(test.vec())
print(len(test.vec()))
print(test.vec()[0])
print(test.vec().readonly)
test.vec()[0] = 'z'
print(test.vec()[0])
print('This should fail:')
test.cvec()[0] = 0
Expose a vector as a memoryview using SWIG