Ups, I guess this is not possible
My C function is called sse, so I guess I could use this
%rename (_sse) pysse;
and then
def _sse(list):
a=np.array(list,dtype=float)
sse(a)
return a
}
To call the C function. I guess it is not possible to have a C function
and a python function with the same name.
Thanks a lot for your help!
Jose.
On Mon, 6 Jul 2009, Jose Guzman wrote:
> Josh Cherry wrote:
>> You could %rename sse to, say, _sse, and call your python function
>> "sse" (and have it call _sse), to get around that annoyance.
>>
>> Josh
>>
> This was a very clever idea indeed. The only thing is that now my C
> function is called _sse, but it is OK.
To make sure we're clear, I was suggesting that you use SWIG's %rename
directive. So you shouldn't have to change the name of the actual C
function.
Josh
On Mon, 6 Jul 2009, Jose Guzman wrote:
> Josh Cherry wrote:
>> You could %rename sse to, say, _sse, and call your python function "sse"
>> (and have it call _sse), to get around that annoyance.
>>
>> Josh
>>
> This was a very clever idea indeed. The only thing is that now my C function
> is called _sse, but it is OK.
To make sure we're clear, I was suggesting that you use SWIG's %rename
directive. So you shouldn't have to change the name of the actual C
function.
Josh
------------------------------------------------------------------------------
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user