[pypy-svn] r49064 - pypy/dist/pypy/rpython/lltypesystem

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Nov 25 10:51:43 CET 2007


Author: cfbolz
Date: Sun Nov 25 10:51:42 2007
New Revision: 49064

Modified:
   pypy/dist/pypy/rpython/lltypesystem/lltype.py
Log:
remove an assertion since it is not true for some of the things rffi did.
Maciek did this on his branch, do it on the trunk too so that the tests don't
fail anymore.


Modified: pypy/dist/pypy/rpython/lltypesystem/lltype.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/lltype.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/lltype.py	Sun Nov 25 10:51:42 2007
@@ -413,9 +413,8 @@
     def __init__(self, args, result):
         for arg in args:
             assert isinstance(arg, LowLevelType)
-            # -- disable the following check for the benefits of rffi --
-            if isinstance(arg, ContainerType):
-                raise TypeError, "function arguments can only be primitives or pointers"
+            # There are external C functions eating raw structures, not
+            # pointers, don't check args not being container types
         self.ARGS = tuple(args)
         assert isinstance(result, LowLevelType)
         if isinstance(result, ContainerType):



More information about the Pypy-commit mailing list