scipy/scipy — pull request #190 by teoliphant (2012-04-07 04:51:37+00:00)
Title: Ctypes callback

This Pull Request allows integrate.quad to by-pass the Python-layer when given a Ctypes function pointer of the correct signature. When the callable passed to integrate.quad is a ctypes function pointer, it is checked for the correct signature, and then the raw C-function is handed to the underlying integration routine which does not call-back into Python.