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

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

by Haoyu Bai :: Rate this Message:

Reply to Author | View in Thread

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.

Best regards,

Haoyu Bai
5/3/2008


-------------------------------------------------------------------------
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?