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 eryksun
Recipients arigo, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-07-17.15:50:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468770626.71.0.512017465865.issue27540@psf.upfronthosting.co.za>
In-reply-to
Content
Parsing the argument is also broken:

    static PyObject *
    msvcrt_ungetwch(PyObject *self, PyObject *args)
    {
        Py_UNICODE ch;

        if (!PyArg_ParseTuple(args, "u:ungetwch", &ch))
            return NULL;

        if (_ungetch(ch) == EOF)
            return PyErr_SetFromErrno(PyExc_IOError);
        Py_INCREF(Py_None);
        return Py_None;
    }

Format "u" is a `Py_UNICODE *`. There's no "C" format code in 2.x, so it will first have to check that the string length is exactly 1 and then use index 0.
History
Date User Action Args
2016-07-17 15:50:26eryksunsetrecipients: + eryksun, arigo, paul.moore, tim.golden, zach.ware, steve.dower
2016-07-17 15:50:26eryksunsetmessageid: <1468770626.71.0.512017465865.issue27540@psf.upfronthosting.co.za>
2016-07-17 15:50:26eryksunlinkissue27540 messages
2016-07-17 15:50:26eryksuncreate