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 amaury.forgeotdarc, belopolsky, eryksun, lepaperwan, meador.inge, terry.reedy
Date 2016-08-27.03:33:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472268818.51.0.135561695523.issue27803@psf.upfronthosting.co.za>
In-reply-to
Content
Terry, the provided example is incomplete and doesn't make sense as it stands. For better or worse, windll.dllname attempts to load WinDLL(dllname) and cache the resulting library on the windll loader. (The library in turn caches function pointers, which means this design is a problem waiting to happen, which has happened a few times with various projects conflicting with each other over windll.kernel32 function prototypes. I recommend using WinDLL instead.)

I gather that Erwan wants ctypes.byref() and the implicit _byref that's called by PyCPointerType_from_param to be enhanced to support objects that define _as_parameter_. So I'm changing the issue type accordingly.
History
Date User Action Args
2016-08-27 03:33:38eryksunsetrecipients: + eryksun, terry.reedy, amaury.forgeotdarc, belopolsky, meador.inge, lepaperwan
2016-08-27 03:33:38eryksunsetmessageid: <1472268818.51.0.135561695523.issue27803@psf.upfronthosting.co.za>
2016-08-27 03:33:38eryksunlinkissue27803 messages
2016-08-27 03:33:37eryksuncreate