PyImport_Import

Pablo Yabo pyabo at novamens.com
Thu Feb 19 13:59:18 EST 2004


Hi,
I´m using PyImport_Import function to load a module. After using that module
I call Py_DECREF with the module pointer to free it.
Then I want to load a module with the same filename but different content,
but Python loads the previous loaded module instead.
I verified the symbols of the module and they are the old symbols of the
file.
How can I force to unload the old module so PyImport_Import function loads
the new contents of the file?

Thanks on advance,

Pablo Yabo






More information about the Python-list mailing list