➜

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.

作者 vstinner
收信人 python-dev, vstinner
日期 2015-03-20.11:24:27
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1426850667.3.0.162673105135.issue23708@psf.upfronthosting.co.za>
In-reply-to
内容
> New changeset 07fd54208434 by Victor Stinner in branch 'default':
> Issue #23708: Save/restore errno in _Py_read() and _Py_write()

When I wrote _Py_read()/_Py_write(), I added assertions on errno to ensure that errno is not modified. I chose to use assertions instead of save/restore errno because on Linux errno is not modified. Since they *are* platforms where errno is modified, it's safer to always save/restore errno.

_Py_read()/_Py_write() *must* set set errno because some callers uses it. It's more convinient to use errno than having to get the errno attribute of the raised OSError exception.

test_signal pass again on "AMD64 Snow Leop 3.x" buildbot, I close the issue.
历史
日期 用户 动作 参数
2015-03-20 11:24:27vstinner修改recipients: + vstinner, python-dev
2015-03-20 11:24:27vstinner修改messageid: <1426850667.3.0.162673105135.issue23708@psf.upfronthosting.co.za>
2015-03-20 11:24:27vstinner链接issue23708 messages
2015-03-20 11:24:27vstinner创建