Skip to content

Commit 50b6778

Browse files
author
Kristján Valur Jónsson
committed
Issue #10538. Put a reference to the source object in the Py_buffer when
converting the old buffer for PyArgs_ParseTuple with *s
1 parent 96cb5d1 commit 50b6778

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/getargs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg)
14101410
*errmsg = "convertible to a buffer";
14111411
return count;
14121412
}
1413-
PyBuffer_FillInfo(view, NULL, buf, count, 1, 0);
1413+
PyBuffer_FillInfo(view, arg, buf, count, 1, 0);
14141414
return 0;
14151415
}
14161416

0 commit comments

Comments
 (0)