mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue