Author sbt
Recipients sbt
Date 2012-10-08.22:08:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
ctypes.WinError() is defined as

    def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr)

Since WindowsError became an alias for OSError, this means that if e is the exception raised, e.errno == GetLastError() and e.winerror == None.

I think the last line should be

        return WindowsError(None, descr, None, code)
Date User Action Args
2012-10-08 22:08:17sbtsetrecipients: + sbt
2012-10-08 22:08:17sbtsetmessageid: <>
2012-10-08 22:08:17sbtlinkissue16169 messages
2012-10-08 22:08:17sbtcreate