This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Kelvin You
Recipients Kelvin You
Date 2016-10-19.07:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
// callproc.c
static PyObject *format_error(PyObject *self, PyObject *args)
    PyObject *result;
    wchar_t *lpMsgBuf;
    DWORD code = 0;
    if (!PyArg_ParseTuple(args, "|i:FormatError", &code))  
                                  ^ Here the format string should be "|I:FormatError"
        return NULL;
    if (code == 0)
        code = GetLastError();
    lpMsgBuf = FormatError(code);
    if (lpMsgBuf) {
        result = PyUnicode_FromWideChar(lpMsgBuf, wcslen(lpMsgBuf));
    } else {
        result = PyUnicode_FromString("<no description>");
    return result;
Date User Action Args
2016-10-19 07:28:01Kelvin Yousetrecipients: + Kelvin You
2016-10-19 07:28:01Kelvin Yousetmessageid: <>
2016-10-19 07:28:00Kelvin Youlinkissue28474 messages
2016-10-19 07:28:00Kelvin Youcreate