[pypy-svn] r53161 - pypy/dist/pypy/lib/_ctypes
fijal at codespeak.net
fijal at codespeak.net
Sun Mar 30 21:11:08 CEST 2008
Author: fijal
Date: Sun Mar 30 21:11:05 2008
New Revision: 53161
Modified:
pypy/dist/pypy/lib/_ctypes/function.py
Log:
fix support for functions from addresses, all tests are passing.
Modified: pypy/dist/pypy/lib/_ctypes/function.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/function.py (original)
+++ pypy/dist/pypy/lib/_ctypes/function.py Sun Mar 30 21:11:05 2008
@@ -32,12 +32,15 @@
def _getargtypes(self):
return self._argtypes_
def _setargtypes(self, argtypes):
+ self._ptr = None
self._argtypes_ = argtypes
argtypes = property(_getargtypes, _setargtypes)
def _getrestype(self):
return self._restype_
def _setrestype(self, restype):
+ self._ptr = None
+ from ctypes import c_char_p
if restype is int:
from ctypes import c_int
restype = c_int
More information about the Pypy-commit
mailing list