Problem calling Python methods from C
Stephen Kellett
snail at objmedia.demon.co.uk
Fri Jun 3 07:36:32 EDT 2005
In message <aXCKGmDmYDoCFwAh at objmedia.demon.co.uk>, Stephen Kellett
<snail at objmedia.demon.co.uk> 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");
Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
More information about the Python-list
mailing list