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 eryksun
Recipients Ivan.Pozdeev, amaury.forgeotdarc, belopolsky, eryksun, meador.inge, r.david.murray
Date 2014-10-05.01:50:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412473826.01.0.580927851718.issue22552@psf.upfronthosting.co.za>
In-reply-to
Content
> How does this relate to issue 14201?  That is, is the answer just 
> "use getitem if you don't want caching"? 

Unlike CDLL.__getitem__, LibraryLoader.__getitem__ does use the attribute cache. Why use a LibraryLoader if you don't want the cached libs and access to their cached function pointers? That's its main reason for existing.  But really only in Windows, since most DLL names work as a attributes and Windows LoadLibrary appends .DLL. If you don't want cached libs, don't use a LibraryLoader. Just use CDLL('msvcr100'), WinDLL('kernel32'), etc. If you want cached libs without polluting ctypes.cdll or ctypes.windll, just create your own instance such as windll = ctypes.LibraryLoader(ctypes.WinDLL).
History
Date User Action Args
2014-10-05 01:50:26eryksunsetrecipients: + eryksun, amaury.forgeotdarc, belopolsky, r.david.murray, meador.inge, Ivan.Pozdeev
2014-10-05 01:50:26eryksunsetmessageid: <1412473826.01.0.580927851718.issue22552@psf.upfronthosting.co.za>
2014-10-05 01:50:25eryksunlinkissue22552 messages
2014-10-05 01:50:25eryksuncreate