Calling C libraries from a Python script

Armin Steinhoff a-steinhoff at web.de
Mon Apr 7 06:50:29 EDT 2003


Thomas Heller <theller at python.net> wrote in message news:<r88gc37v.fsf at python.net>...
> joshua at goodish.org (Joshua Goodlett) writes:
> 
> > I'm trying to find examples of calling C library functions from within
> > a Python script.  Any advice or pointers on where to look for examples
> > would be appreciated.
> 
> If the C library is a dll, you could use ctypes.

Such DLLs must also be conform to the  _cdecl call convention ... isn't it ?

Armin 

> 
> Thomas




More information about the Python-list mailing list