From: Martin S. <m_s...@gm...> - 2008-05-09 13:56:15
|
Hi ! In the docu you can find, that 'self' should be the first argument in classes. See: http://rgruet.free.fr/PQR25/PQR2.5.html#ClassDef or see docu on www.python.org William S Fulton schrieb: > 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 > |