mirror of https://github.com/python/cpython
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:
parent
96cb5d15c1
commit
50b6778bda
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue