[pypy-svn] pypy default: Disable this check, it breaks ctypes.cast()

amauryfa commits-noreply at bitbucket.org
Mon Jan 17 18:06:23 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r40789:8285c02308e4
Date: 2011-01-17 17:53 +0100
http://bitbucket.org/pypy/pypy/changeset/8285c02308e4/

Log:	Disable this check, it breaks ctypes.cast()

diff --git a/lib_pypy/_ctypes/function.py b/lib_pypy/_ctypes/function.py
--- a/lib_pypy/_ctypes/function.py
+++ b/lib_pypy/_ctypes/function.py
@@ -185,7 +185,9 @@
                     % (len(self._argtypes_), plural, len(args)))
 
             # check that arguments are convertible
-            self._convert_args(self._argtypes_, args)
+            ## XXX Not as long as ctypes.cast is a callback function with
+            ## py_object arguments...
+            ## self._convert_args(self._argtypes_, args)
 
             try:
                 res = self.callable(*args)


More information about the Pypy-commit mailing list