Thank you. I looked at the example and I need some time to digest it. I'll take a loser look over the weekend.

   Nadav.

בתאריך 28 במרץ 2012 00:03, מאת Stéfan van der Walt <stefan@sun.ac.za>:
Hi Nadav

I just had a chat with Dag, a core Cython contributor.  He mentioned
to me another alternative, which is to encapsulate the callback
function in a class:

https://github.com/dagss/cython-pydata12/blob/master/examples/oointegrate/integrate.pyx

You can import this class from Python, and pass it along as the
callback object.  There may be some work on improving this
functionality in the future, but for now I think that's the cleanest
route (and helps us to avoid ctypes!).

Stéfan


On Tue, Mar 20, 2012 at 1:02 AM, Nadav Horesh <nadavh.horesh@gmail.com> wrote:
>
> Can you explain in more details how can I implement it? Any case I am
> attaching an scheme that may clarify my intend. Soon I'll post a code
> demonstrating the problem.
>
>   Thank you,
>      Nadav,