Why does creating this memoryview raise a ValueError only when assigning to a variable? Why does creating this memoryview raise a ValueError only when assigning to a variable? python python