Terry Reedy wrote:

Would it be possible to write a program that converts a module that uses ctypes to interface to a dll to a corresponding C extension program that would compile to a drop in replacement extension module?

Probably, but I don't see how that could be done automatically
in a way that ensured the result would be any safer than the
original ctypes-using version. If you preserve the semantics of
the Python code, you also preserve any bugs it might have.

--
Greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to