[issue38031] FileIO.__init__ aborts when opener returns bad fd

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker ___ __

[issue38031] FileIO.__init__ aborts when opener returns bad fd

2019-09-04 Thread Maxwell Bernstein
New submission from Maxwell Bernstein : On a debug build, the following causes an abort: import _io _io.FileIO("foobar", opener=lambda name, flags: 100) 100 is not a valid fd. FileIO attempts to raise an IOError from errno, but there is already an exception set when PyErr_SetFromErrno

[issue38031] FileIO.__init__ aborts when opener returns bad fd

2019-09-04 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +15346 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15688 ___ Python tracker ___ __

[issue38031] FileIO.__init__ aborts when opener returns bad fd

2019-09-04 Thread Zackery Spytz
Zackery Spytz added the comment: Thank you for the report. -- components: +Interpreter Core nosy: +ZackerySpytz versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker __