On 11/10/05, Sepp Meier <[hidden email]> wrote:
> Hi all
> I want to pass a float from C to python and from
> python to c with getters and setters in oo-style, but
> it doesn't work.
> (The same construct with an Integer works)
> Every suggestion is appreciated.
I couldn't quite figure it out, but it looks like the value of "f" is
getting mangled between the inlined function in test.i and the actual
function in test.c. I can't really look at it any more at the moment,
Also, you don't need the #include <python/Python.h> in your .i file,
swig takes care of that for you. Actually it #include's Python.h, and
you'll need to set up your include path appropriately.
If I get a chance I'll look at this a little more later.