[Python-bugs-list] importing extensions (PR#275)
Guido van Rossum
Thu, 06 Apr 2000 09:41:45 -0400
> Problem is:
> * Python.exe correctly loads Python16.dll
> * Python does import foo.pyd
> * Loading foo.pyd forces Python15.dll to be loaded.
> * Python15.dll crashes as it has not been initialized.
> I can not see a good solution to this, other than a fairly heavy
> solution, and even then it would only work for 1.6 vs 1.7 - ie, we
> would also need some diagnostic code in the _early_ version to
> handle this gracefully.
> What this means is, if we want to prevent this same problem in
> Python 1.7 vs Python 1.6, we need to add the code into 1.6. It is
> too late for 1.5.
Is it really a problem? Can't we just say "extensions are
incompatible between versions"?
Would there be a way to discover before loading a DLL that it links
with python15.dll and then refuse to do it? I'd gladly accept patches
for dynload_win.c to do this...
--Guido van Rossum (home page: http://www.python.org/~guido/)