[New-bugs-announce] [issue22961] ctypes.WinError & OSError
Simon Zack
report at bugs.python.org
Fri Nov 28 07:37:34 CET 2014
New submission from Simon Zack:
The ctypes.WinError function returns:
OSError(None, descr, None, code)
However OSError does not appear to allow None as a first argument, and converts it to 22 which is the EINVAL "Invalid Argument" error. This is rather confusing as there was no invalid argument errors in the code.
I think the behaviour for one of WinError and OSError should be modified so that the handling of errno is more compatible.
----------
messages: 231796
nosy: simonzack
priority: normal
severity: normal
status: open
title: ctypes.WinError & OSError
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22961>
_______________________________________
More information about the New-bugs-announce
mailing list