Martin v. Löwis wrote:
Third party modules would link against this DLL independent of which python is being used.
I believe this is not implementable: How can the DLL know which Python DLL to use?
the Python interpreter could initialize this DLL, using some suitable mechanism.
alternatively, it could figure out what EXE you used to start the program in the first place, and figure out what Python DLL that EXE uses. my ExeMaker tool can do that, for example:
(see the #!python.exe entry in the table)