[Zope] Python coding question

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Wed, 1 Dec 1999 14:58:22 -0500 (EST)


On Wed, 1 Dec 1999, Alwyn Schoeman wrote:

> 
> What I want to know is that if you have a C function like this:
>     int Hello (char *somestring, int *someint)
> it now seems that python can get only the value sentback by
> return???

Why don't you return python objects from you C function. Something like:

return Py_BuildValue("ff",x,y);

will return two floats, x and y as standard python float objects.

Pavlos