PythoidC (http://pythoidc.sourceforge.net/) provides an easy way for developing 
and importing C modules into Python environment. There are some examples, may 
be of some help to you. 
With PythoidC, Python programmers can write, debug, commpile, C codes all in 
Python IDE, and do not have to tackel the boring braces {} and line-end 
semicolons ; 
PythoidC automatically parses C header files, make corresponding Python 
objects, thus Python programmer can essily introspect into C ... ...
CHEN Guang
----- Original Message ----- 
From: "booncw" <chiaw...@gmail.com>
To: <python-list@python.org>
Sent: Tuesday, April 06, 2010 9:58 PM
Subject: Loading an imported module (C API)


> Hi,
> 
> I am running a simulation where the python module has already been
> imported.   Could you please tell me how to load it?
> 
> I've been doing this (importing everytime), but it is too slow:
> pModule = PyImport_Import(pName);
> 
> 
> Yours,
> 
> Boon
> 
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to