KennyTM~ wrote: > In pure Python you bind C code with the 'ctypes' module. > > from ctypes import * > xso = CDLL('x.so') > xso.fooC.restype = c_double > xso.fooC.argtypes = [c_int] > ... > xso.fooC(4) Compare that with: extern(C) double foo(int); foo(4); and you don't need to build a .so either.