c++ extension, problem passing argument
Aaron Brady
castironpi at gmail.com
Fri Mar 13 17:35:04 EDT 2009
On Mar 13, 1:34 pm, Matteo <tadweles... at gmail.com> wrote:
> hmmm... looks like SWIG has a problem with double pointers. I googled
> around a bit and found:
>
> http://osdir.com/ml/programming.swig/2003-02/msg00029.html
>
> anyone knows how to write a small wrapper to do the appropriate
> dereferencing?
'ctypes' may be able to do it. I've done something like this in the
past:
double_ptr= ctypes._cast( PyObject, sing_ptr )
Up your alley?
More information about the Python-list
mailing list