[New-bugs-announce] [issue7760] use_errno=True does not work

Nikolaus Rath report at bugs.python.org
Sat Jan 23 01:18:57 CET 2010


New submission from Nikolaus Rath <Nikolaus at rath.org>:

On my system (Ubuntu Karmic, Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15), Kernel 2.6.31-17-generic, libc6 2.10.1-0ubuntu16) the attached test script produces the following output:

Traceback (most recent call last):
  File "test1.py", line 27, in <module>
    raise OSError(err, os.strerror(err), path)
OSError: [Errno 0] Success: '/does/not/exist'

So the function call failed, but the errno provided by ctypes is zero.

(There are two variants of construction the getxattr() foreign function in the script and both produce the same result).

----------
assignee: theller
components: ctypes
files: test1.py
messages: 98171
nosy: Nikratio, theller
severity: normal
status: open
title: use_errno=True does not work
type: behavior
versions: Python 2.6, Python 3.1
Added file: http://bugs.python.org/file15976/test1.py

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


More information about the New-bugs-announce mailing list