diff --git a/python/ideep4py/py/swig_utils/pep_3118.i b/python/ideep4py/py/swig_utils/pep_3118.i index 7a573469..2f673f1f 100755 --- a/python/ideep4py/py/swig_utils/pep_3118.i +++ b/python/ideep4py/py/swig_utils/pep_3118.i @@ -60,7 +60,7 @@ } %typemap(in) (VIEW) (int res, Py_buffer view - , int flags = PyBUF_C_CONTIGUOUS | PyBUF_RECORDS) { + , int flags = PyBUF_C_CONTIGUOUS | PyBUF_RECORDS_RO) { /* view = new Py_buffer;*/ res = PyObject_GetBuffer($input, &view, flags); if (res != 0) {