From: Alexander G. <Ale...@tu...> - 2007-03-27 00:47:18
|
Hello List! I've got a little problem with ode.Body which is as follows: <snip> #!/usr/bin/env python import ode class foobar(ode.Body): def __init__(self, world, foo, bar): print foo ode.Body.__init__(world) print bar real_life = ode.World() mybody = foobar(real_life, "foo", "bar") </snip> returns this: <snip> imtrey% ./test2.py Traceback (most recent call last): File "./test2.py", line 12, in <module> mybody = foobar(real_life, "foo", "bar") TypeError: function takes exactly 1 argument (3 given) imtrey% </snip> Now, why doesn't it work as it's supposed to? I'm puzzled. I hope you can help me. Best wishes, alex |