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 tekknolagi
Recipients tekknolagi
Date 2019-09-04.21:19:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
On a debug build, the following causes an abort:

import _io
_io.FileIO("foobar", opener=lambda name, flags: 1000000)

1000000 is not a valid fd. FileIO attempts to raise an IOError from errno, but there is already an exception set when PyErr_SetFromErrno uses PyObject_Call to create the exception.
History
Date User Action Args
2019-09-04 21:19:41tekknolagisetrecipients: + tekknolagi
2019-09-04 21:19:41tekknolagisetmessageid: <[email protected]>
2019-09-04 21:19:41tekknolagilinkissue38031 messages
2019-09-04 21:19:41tekknolagicreate