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 Ivan.Pozdeev
Recipients Ivan.Pozdeev, amaury.forgeotdarc, belopolsky, eryksun, meador.inge, r.david.murray
Date 2014-10-05.04:17:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412482660.16.0.135530019529.issue22552@psf.upfronthosting.co.za>
In-reply-to
Content
> If you want cached libs without polluting ctypes.cdll or ctypes.windll, just create your own instance such as windll = ctypes.LibraryLoader(ctypes.WinDLL).

This one looks like the next best thing to the current state of affairs, requiring minimal change to existing code.

`cast' appears to be the "right way" when saving individual _FuncPtr's in a local namespace but it's far from being obvious.

If going this way, a prominent warning in https://docs.python.org/2.7/library/ctypes.html?highlight=ctypes#loading-dynamic-link-libraries with the way to go would probably suffice.
History
Date User Action Args
2014-10-05 04:17:40Ivan.Pozdeevsetrecipients: + Ivan.Pozdeev, amaury.forgeotdarc, belopolsky, r.david.murray, meador.inge, eryksun
2014-10-05 04:17:40Ivan.Pozdeevsetmessageid: <1412482660.16.0.135530019529.issue22552@psf.upfronthosting.co.za>
2014-10-05 04:17:40Ivan.Pozdeevlinkissue22552 messages
2014-10-05 04:17:39Ivan.Pozdeevcreate