def ndarray_from_structure(items, fmt, t, flags=0):
 (memlen, itemsize, ndim, shape, strides, offset) = t
 return ndarray(items, shape=shape, strides=strides, format=fmt, offset=offset, flags=(ND_WRITABLE | flags))

def ndarray_from_structure ( items , fmt , t , flags = 0 ) : ( memlen , itemsize , ndim , shape , strides , offset ) = t return ndarray ( items , shape = shape , strides = strides , format = fmt , offset = offset , flags = ( ND_WRITABLE | flags ) )
return ndarray from the tuple returned by rand_structure() .