]> granicus.if.org Git - python/commitdiff
Issue #10538. Put a reference to the source object in the Py_buffer when
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Thu, 22 Mar 2012 16:35:37 +0000 (16:35 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Thu, 22 Mar 2012 16:35:37 +0000 (16:35 +0000)
converting the old buffer for PyArgs_ParseTuple with *s

Python/getargs.c

index eccdc9bfb30538d29bd65349f4e548360c0e40bf..a6cebbc75d1843c223105b8b4e66d0716d43ddd0 100644 (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;
 }