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 dabeaz, eryksun
Date 2015-10-26.10:04:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445853899.22.0.0560920311577.issue25476@psf.upfronthosting.co.za>
In-reply-to
Content
I meant that you need a check in buffered_close such as the following:

    if (res == NULL) {
        if (PyErr_ExceptionMatches(PyExc_BlockingIOError))
            goto end;
        PyErr_Fetch(&exc, &val, &tb);
    } else
        Py_DECREF(res);

For 2.7 you could create a function similar to _PyIO_trap_eintr, but trap the errors that Python 3 maps to BlockingIOError: EAGAIN/EWOULDBLOCK, EALREADY, and EINPROGRESS.
History
Date User Action Args
2015-10-26 10:04:59eryksunsetrecipients: + eryksun, dabeaz
2015-10-26 10:04:59eryksunsetmessageid: <1445853899.22.0.0560920311577.issue25476@psf.upfronthosting.co.za>
2015-10-26 10:04:59eryksunlinkissue25476 messages
2015-10-26 10:04:58eryksuncreate