from numpy import array y=array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) y.shape = 3,4 y_view=memoryview(y) y0_view = y_view[0] # y0_view is not initialized, tolist() will crash: y0_view.tolist()