[SciPy-Dev] Calling LowLevelCallable from Cython
Pauli Virtanen
pav at iki.fi
Thu May 31 08:27:16 EDT 2018
Hi,
At the moment probably nothing better than
https://github.com/scipy/scipy/blob/master/scipy/_lib/_ccallback_c.pyx#L137
if I understand what you mean.
ke, 2018-05-30 kello 17:31 -0700, Stefan van der Walt kirjoitti:
> Hi all,
>
> I am looking into how to call a user-provided LowLevelCallable from
> Cython. In SciPy, I could only find examples of how to do that from
> C
> (e.g. `scipy.integrate.quad`). Wherever it is used, some processing
> is
> done to see whether the LowLevelCallable provides a Python function,
> a C
> function, what the signature is, etc. before calling.
>
> Would it be convenient to have a set of Cython utilities that makes
> this
> process easier? Or is there perhaps a trick in Cython that makes it
> trivial?
>
> I'm going to work on this more tomorrow, but wanted to check first
> whether anyone here has attempted something similar?
>
> Thanks!
> Stéfan
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
More information about the SciPy-Dev
mailing list