[pypy-svn] r51543 - pypy/dist/pypy/lib/_ctypes

fijal at codespeak.net fijal at codespeak.net
Fri Feb 15 17:09:12 CET 2008


Author: fijal
Date: Fri Feb 15 17:09:11 2008
New Revision: 51543

Modified:
   pypy/dist/pypy/lib/_ctypes/primitive.py
Log:
Store this (is unnecessary as we copy stuff anyway, but makes it more
compliant)


Modified: pypy/dist/pypy/lib/_ctypes/primitive.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/primitive.py	(original)
+++ pypy/dist/pypy/lib/_ctypes/primitive.py	Fri Feb 15 17:09:11 2008
@@ -118,6 +118,7 @@
                 if isinstance(value, str):
                     array = _rawffi.Array('c')(len(value)+1, value)
                     value = array.buffer
+                    self._objects = value
                     # XXX free 'array' later
                 elif value is None:
                     value = 0



More information about the Pypy-commit mailing list