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

fijal at codespeak.net fijal at codespeak.net
Fri Feb 15 14:28:29 CET 2008


Author: fijal
Date: Fri Feb 15 14:28:29 2008
New Revision: 51527

Modified:
   pypy/dist/pypy/lib/_ctypes/function.py
Log:
keepalive for function pointer


Modified: pypy/dist/pypy/lib/_ctypes/function.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/function.py	(original)
+++ pypy/dist/pypy/lib/_ctypes/function.py	Fri Feb 15 14:28:29 2008
@@ -40,6 +40,7 @@
     def __init__(self, argument=None):
         self.callable = None
         self.name = None
+        self._objects = {'0':self}
         if isinstance(argument, int):
             self._buffer = _rawffi.Array('P').fromaddress(argument, 1)
             # XXX finish this one, we need to be able to jump there somehow



More information about the Pypy-commit mailing list