[Python-checkins] cpython (2.7): Issue #10538. Put a reference to the source object in the Py_buffer when

kristjan.jonsson python-checkins at python.org
Thu Mar 22 17:37:32 CET 2012


http://hg.python.org/cpython/rev/17c671529f7e
changeset:   75885:17c671529f7e
branch:      2.7
parent:      75880:8c19c9914c22
user:        Kristján Valur Jónsson <kristjan at ccpgames.com>
date:        Thu Mar 22 16:35:37 2012 +0000
summary:
  Issue #10538. Put a reference to the source object in the Py_buffer when
converting the old buffer for PyArgs_ParseTuple with *s

files:
  Python/getargs.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/getargs.c b/Python/getargs.c
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -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;
 }
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list