[Dream] A meta-wrapper module to interface any C dynamic library
unendliche at hanmail.net
Fri Jul 4 16:56:52 CEST 2003
To see is to believe. The following is an actual IDLE session on WinXP.
However, ctypes is cross-platform -- it rusn on Windows, Linux, MacOS X.
>>> import ctypes
>>> loader = ctypes.cdll
>>> dll = loader.msvcrt
>>> sin = dll.sin
>>> sin.argtypes = [ctypes.c_double]
>>> sin.restype = ctypes.c_double
More information about the Python-list