From: Ethan Glasser-C. <gl...@cs...> - 2007-03-27 01:32:47
|
Alexander Gabriel wrote: > I've got a little problem with ode.Body which is as follows: >=20 > Now, why doesn't it work as it's supposed to? > I'm puzzled. Hi, I googled for "pyrex subclass" and found: http://mail.python.org/pipermail/python-list/2007-January/424177.html Accordingly I added a function to your example as follows: def __new__(self, world, foo, bar): return ode.Body.__new__(self, world) and ran the program only to uncover that you left out self in your call to ode.Body.__init__ :). I added that and I think your program works as expected. Hope this helps, Ethan |