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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22961>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to