On Sun, Aug 28, 2011 at 6:58 AM, Terry Reedy <tjre...@udel.edu> wrote: > 2) It is not trivial to use it correctly. I think it needs a SWIG-like > companion script that can write at least first-pass ctypes code from the .h > header files. Or maybe it could/should use header info at runtime (with the > .h bundled with a module).
This is sort of already available: -- http://starship.python.net/crew/theller/ctypes/old/codegen.html -- http://svn.python.org/projects/ctypes/trunk/ctypeslib/ It just appears to have never made it into CPython. I've used it successfully on a small project. Schiavo Simon _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com