blob: afede0225dc1eb1c77e3bf40150bbf0b41f744b7 [file]
import python_nondynamic_cpp
e = python_nondynamic_cpp.Element()
e.value = 42
ve = python_nondynamic_cpp.VectorElement((e,))
if ve[0].value != 42:
raise RuntimeError("vector element not retrieved correctly")
try:
ve[0].other = 1
raise RuntimeError("Element in a vector is not static")
except AttributeError:
pass