Re: Loading an imported module (C API)

2010-04-08 Thread Christian Heimes
On 06.04.2010 15:58, booncw wrote: 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); You can cache the module object in a

Re: Loading an imported module (C API)

2010-04-08 Thread CHEN Guang
10 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 = P

Loading an imported module (C API)

2010-04-06 Thread booncw
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