[Cython] Class methods returning C++ class references are not dealt with correctly?
Bradley M. Froehle
brad.froehle at gmail.com
Thu Feb 28 17:01:52 CET 2013
On Thu, Feb 28, 2013 at 4:58 AM, Yury V. Zaytsev <yury at shurup.com> wrote:
> Hi,
>
> I'm sorry if my question would appear to be trivial, but what am I
> supposed to do, if I want to wrap class methods, that return a reference
> to another class?
As a workaround you could use:
cdef extern from "test.h":
int* foo2ptr "&foo" ()
cdef int *x = foo2ptr()
This could be extended to your other example as well.
-Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20130228/8e4f0dae/attachment.html>
More information about the cython-devel
mailing list