Greg Ewing schrieb: > Another thought about ctypes: What if you want to pass > a Python function into C as a callback? Does ctypes > have a way of handling that? > Sure. The tutorial has an example that calls qsort with a Python comparison function: http://docs.python.org/dev/lib/ctypes-callback-functions.html Thomas