[python-win32] Re: how to load 2 python COM DLLs in single app?

Niki Spahiev niki at vintech.bg
Mon Oct 25 09:53:01 CEST 2004


Thomas Heller wrote:

> 1. Patch py2exe's code so that sys.path is not replaced but extended
> when Python is already initialized.  This gives no isolation between the
> com dlls (and the main process, if it also uses Python) at all.
> 
> 2. Run the com dll servers in different interpreters, with
> Py_NewInterpreter(). According to the python docs, extension modules
> are still shared - this may be good, or may be bad.

2a. Installer for example renames mk4py.dll found in package foo as
foo.mk4py.dll IMO this way we can have separate copy of each extension 
in each interpreter.

I am trying to grok Phillip J. Eby's ideas and produce something about 
Py_NewInterpreter.

> 
> 3. Create completely standalone, single file dlls, with no external
> python.dll needed.

IMHO not good - will need separate tests with each release.

Niki Spahiev


More information about the Python-win32 mailing list