[New-bugs-announce] [issue12437] _ctypes.dlopen does not include errno in OSError

Matt Joiner report at bugs.python.org
Wed Jun 29 02:07:07 CEST 2011


New submission from Matt Joiner <anacrolix at gmail.com>:

_ctypes.dlopen is not including the errno when it raises OSError.

This occurs when attempting to load a library that doesn't exist, the error string given is clearly generated from an ENOENT.

joiner at dbssyd800:~$ python3 dlopen_raise.py
None
somelib.so: cannot open shared object file: No such file or directory

----------
components: ctypes
files: dlopen_raise.py
messages: 139382
nosy: anacrolix
priority: normal
severity: normal
status: open
title: _ctypes.dlopen does not include errno in OSError
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file22512/dlopen_raise.py

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


More information about the New-bugs-announce mailing list