diff Python/getargs.c @ 75885:17c671529f7e 2.7

Issue #10538. Put a reference to the source object in the Py_buffer when converting the old buffer for PyArgs_ParseTuple with *s
author Kristján Valur Jónsson <kristjan@ccpgames.com>
date Thu, 22 Mar 2012 16:35:37 +0000
parents a0681e7a6ded
children aa804ef5a6ca
line wrap: on
line diff
--- a/Python/getargs.c	Thu Mar 22 16:06:43 2012 +0100
+++ b/Python/getargs.c	Thu Mar 22 16:35:37 2012 +0000
@@ -1410,7 +1410,7 @@
         *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;
 }