Hi Stefan,
Note that a wrapper function may offer more than one native signature, e.g.
when wrapping overloaded C++ functions or when using Cython fused functions.
the big problem I'm finding for unpacking C++ functions (other than that
there's no platform-independent way to do so when it comes to methods, AFAIK
anyway), is handling of C++ exceptions.
Integrating unpacked functions pointers with PyPy works rather elegantly
through the functionality made available in rlib/libffi.py. The form of the
specification matters little at that point, as long as it is complete.
For cppyy, the current plan is to wrap python functions in generated C++
functions for callbacks. But, reading the proposal, that's only half the
story. I'd love to see the other side materialize as well.
Best regards,
Wim
--
[email protected] -- +1 (510) 486 6411 -- www.lavrijsen.net
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev