Issue #10538. Put a reference to the source object in the Py_buffer when

converting the old buffer for PyArgs_ParseTuple with *s
This commit is contained in:
Kristján Valur Jónsson 2012-03-22 16:35:37 +00:00
parent 96cb5d15c1
commit 50b6778bda
1 changed files with 1 additions and 1 deletions

View File

@ -1410,7 +1410,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg)
*errmsg = "convertible to a buffer";
return count;
}
PyBuffer_FillInfo(view, NULL, buf, count, 1, 0);
PyBuffer_FillInfo(view, arg, buf, count, 1, 0);
return 0;
}