Re: dynimac code with lambda function creation

2008-03-27 Thread Justin Delegard
It didn't work when I tried to pass the method object, because 'self' wasn't being recognized as a valid symbol.  I've just been breaking my teeth on python OO, so I didn't realize that 'self' needed to be the first argument of every method that used it.  After inserting that, everything worked

Re: dynimac code with lambda function creation

2008-03-27 Thread Bruno Desthuilliers
Justin Delegard a écrit : > So I am trying to pass an object's method call I assume you mean "to pass an object's method", since I don't get what passing "an object's method call" could mean. > to a function that > requires a function pointer. s/pointer/object/ There's nothing like a pointer

Re: dynimac code with lambda function creation

2008-03-27 Thread Laszlo Nagy
Justin Delegard wrote: > So I am trying to pass an object's method call to a function that > requires a function pointer. I figured an easy way to do it would be to > create a lambda function that calls the correct method, but this is > proving more difficult than I imagined. > > Here is the fu

dynimac code with lambda function creation

2008-03-27 Thread Justin Delegard
So I am trying to pass an object's method call to a function that requires a function pointer. I figured an easy way to do it would be to create a lambda function that calls the correct method, but this is proving more difficult than I imagined. Here is the function I'm using: def objectMetho