Hi StephenThanks for examining and advise a solution. Before testing CPython I wanted to run this very simple think to send a tuple to a method of a python class.I have succeeded in sending a tuple (declared exactly the same way as I do in the code) to a method written in a python filebut as soon
[cleaned up top-posted citation order to make the replies readable]
刘振海, 10.01.2012 14:24:
> 2012/1/10 Stefan Behnel
>> """
>> # in module "gluecode.pyx" (or whatever you want to name it)
>>
>> import mModule8
>>
>> cdef api float compute_norm(float init_value, float x, float y, float z):
>>ve
Hi,
I have been using Cython for a period of time.
But I can not find a description for the "api" key word in Cython documents
cdef api float compute_norm(float init_value, float x, float y, float z):
Can you explain it a little bit? Thanks!
Regards,
Liu Zhenhai
2012/1/10 Stefan Behnel
> Hi a
Hi again,
just as a little teaser, to make it clear that I'm not joking, here's your
code below translated into Cython.
Stefan Behnel, 10.01.2012 13:33:
> [email protected], 10.01.2012 11:57:
>> the code is the following:
> [...]
>> // Class
>> pclass = PyObject_GetAttrString(mymod, "cVector");
>>
Hi!
[email protected], 10.01.2012 11:57:
> I am trying to pass a tuple to a method of a class from C++ to Python. I get
> a
> Run Failed from the execution.
> thanks for help/suggestions
My *suggestion* is to use Cython instead of writing the glue code yourself.
There are several bugs and lots o