« Return to Thread: SWIG && Python -> self first argument?

Re: SWIG && Python -> self first argument?

by wsfulton :: Rate this Message:

Reply to Author | View in Thread

Haoyu Bai wrote:

> Martin Schwarzbauer wrote:
> > Hi there!
> >
> > I use SWIG to use my C++ Code in Python! It work's but in Eclipse I get
> > the warning/error that the first argument should be 'self' -> why
> > doesn't  SWIG create valid python codE?
> >
>
> Yes, the generated code isn't IDE friendly. But the generated code is
> surely *valid* since it can runs. I think Eclipse gives you some warning
> but no error, right? So you can simply ignore it.
>
Is SWIG generating code that is possibly deprecated? Maybe the self
should be generated and if that will work too we should fix this. I'd
need to defer to a Python expert though.

William

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: SWIG && Python -> self first argument?

LightInTheBox - Buy quality products at wholesale price