Is it possible to use the CFE python bindings with PyPy?

Hello,

I hope this is not a total noob question…

When I try to do this I get the following error:

File “/home/amitm/clangws/linst/wclang.py”, line 121, in find_all_nodes
for c in node.get_children():
File “/local/amitm/usr/lib/python/clang/cindex.py”, line 1339, in get_children
children)
File “/usr/lib/pypy/lib_pypy/_ctypes/function.py”, line 699, in call
return CFuncPtr.call(self, *args)
File “/usr/lib/pypy/lib_pypy/_ctypes/function.py”, line 333, in call
args, kwargs)
File “/usr/lib/pypy/lib_pypy/_ctypes/function.py”, line 552, in _convert_args
raise ArgumentError(str(e))
ArgumentError: expected py_object instance instead of list
make: *** [test_logs.o] Error 1

This is based on LLVM 3.4, I believe, and PyPy 1.8.0.

Thanks,

Amit Margalit
IBM XIV - Storage Reinvented
XIV-NAS Development Team
Tel. 03-689-7774
Fax. 03-689-7230