mercredi 31 août 2016

C++ pointers in Cython

I use Cython to wrap my C++ classes. Some of methods return sth. like class_name*. class_name may be some complicated class already described in pxd and pyx file (like it is mentioned here in extended answer http://ift.tt/2bCxfbz). But Cython says in pyx defs that I am returning not a Python type. I want to be able to return c++-like pointers in python and then use methods of this objects and to pass them to c++ methods.

Aucun commentaire:

Enregistrer un commentaire