[issue12437] _ctypes.dlopen does not include errno in OSError

Santoso Wijaya report at bugs.python.org
Thu Aug 4 02:37:59 CEST 2011


Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:

>From what I gather from the code, when dlopen fails in POSIX platforms, ctypes raises an PyExc_OSError instantiated with a simple string (via PyErr_SetString()). I suppose this could be changed to raise a more complex tuple, instead (like its WindowsError equivalent when LoadLibrary fails in Windows platforms), but that might break existing code that relies on this behavior. 3.3 only?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12437>
_______________________________________


More information about the Python-bugs-list mailing list