[issue27803] ctypes automatic byref failing on custom classes attributes
Eryk Sun
report at bugs.python.org
Fri Aug 26 23:33:38 EDT 2016
Eryk Sun added the comment:
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.
----------
nosy: +eryksun
type: behavior -> enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27803>
_______________________________________
More information about the Python-bugs-list
mailing list