>From the document " "Embedding Pypy", we got the method to call python
function from C code.
But there are no examples on how to get the function return value.
Does pypy have this feature?
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python
The python functions usage is like UDF.
The function parameters might be different from time to time.
We are not able to get all parmaters we need to call at the begining. And
we' ve no ideas how many times we need to call. It all depends on how user
input the command at the front end.
And one mor
Couldn't you just write the loop in Python?
On May 12, 2015 9:42:47 PM CDT, Yicong Huang wrote:
>Hi,
>
>I read the document "Embedding Pypy". It introduces the method to call
>pypy
>function from C.
>In our scenaro, we would like to call the same pypy function from C for
>thousands of times or ev
Hi,
I read the document "Embedding Pypy". It introduces the method to call pypy
function from C.
In our scenaro, we would like to call the same pypy function from C for
thousands of times or even millions of times.
Following the document, the code is like this:
for(i = 0; i < count; i++){
Hi,
I followed the document (
http://pypy.readthedocs.org/en/latest/embedding.html), to call python
function from C code.
The program I wrote is simple: it read python code from a local file to
char*, and pass char* to pypy_execute_source().
However, I met these errors when executing the program:
The problem was solved.
GCC 4.1 in Redhat EL5.7 is old.
By using GCC 4.7.1, there were no such errors.
On Mon, May 11, 2015 at 4:40 PM, Yicong Huang wrote:
> Hi,
>
> I tired to compile pypy-2.5.1 source code on Redhat EL 5.7.
> After quite a long time, I observed final linking errors:
>
> [trans