Re: Problem calling Python methods from C

2005-06-03 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Stephen Kellett <[EMAIL PROTECTED]> writes Following my posting with the solution for anyone else that wants to know the answer. The solution appears to be not to use: >module = PyImport_AddModule("gc"); But to use module = PyImport_ImportModule("gc");

Problem calling Python methods from C

2005-06-03 Thread Stephen Kellett
Hello everyone, I'm trying to do something in C calling Python and its failing. I'd be grateful if you could take a look and hopefully you have an answer. What I'm trying to do is determine the address of the "collect" function in the "gc" module. I want to do this so that we can determine when a