This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author njs
Recipients Ray Donnelly, barry, brett.cannon, eryksun, lemburg, njs, paul.moore, steve.dower, tim.golden, xoviat, zach.ware
Date 2018-01-17.01:12:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516151564.79.0.467229070634.issue32516@psf.upfronthosting.co.za>
In-reply-to
Content
Steve said:
> The import hook was my proposal to let you only preload DLLs when the extension module is being loaded, rather than having to load all the DLLs on the first "import scipy" just in case one of its submodules gets imported later. A hook can trigger on a specific module.

That's a good point: we could write an import hook that examines each .pyd before it's loaded, and then preloads just the .dlls that it's looking for. But... that's literally reimplementing what the normal DLL loader does. If we can get the normal DLL loader to work, it's probably going to be simpler. And so long as we're talking specifically about the case where it's a directory we control and that only contains .dlls with mangled names, then it seems fine to me. (And maybe Ray will have to hold his nose, but, well, you know. That's programming sometimes.)

xoviat said:
> This is what ray said:
> "Please do not do this. Importing a specific module should not modify the way that process loads subsequent DLLs."

I'm not sure what Ray's worried about exactly, but I don't see anything in his comment that makes me think moving the DLL path manipulation code into the interpreter will make him happier.

I think this can be closed.
History
Date User Action Args
2018-01-17 01:12:44njssetrecipients: + njs, lemburg, barry, brett.cannon, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, xoviat, Ray Donnelly
2018-01-17 01:12:44njssetmessageid: <1516151564.79.0.467229070634.issue32516@psf.upfronthosting.co.za>
2018-01-17 01:12:44njslinkissue32516 messages
2018-01-17 01:12:43njscreate