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 mloskot
Recipients V.E.O, amaury.forgeotdarc, brian.curtin, christian.heimes, m_python, mloskot, pitrou, tim.golden, tim.peters, vstinner
Date 2013-09-11.16:01:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CABUeae9NOv_AmMjuMApsb052x+LnUy-UqSLQPMwQgJ5o8dDCAw@mail.gmail.com>
In-reply-to <1684239331.53513321.1378899284041.JavaMail.root@zimbra10-e2.priv.proxad.net>
Content
On 11 September 2013 12:34, Antoine Pitrou <report@bugs.python.org> wrote:
>> I'm not sure which minor version of Python 3.2 it was, but in my
>> comment in msg187362, I confirmed that I have tested the later
>> version with added is_valid_fd function. As far as I understand, the
>> changes in http://hg.python.org/cpython/rev/f15943505db0/ introduce
>> that is_valid_fd function, which does not seem to solve the problem.
>
> Could you try to investigate this a bit further? Does is_valid_fd()
> return true, and why?

I have already checked that (see msg187362)

Shortly, is_valid_fd always returns true because fd < 0 is always
false as my tests with Visual Studio 2012 (Visual C++ 11.0 (1700)
confirmed (see also bug report linked in msg188117)

    assert(fdi == 0);
    assert(fdo == 1);
    assert(fde == 2);

IOW, fd is always larger than 0.
History
Date User Action Args
2013-09-11 16:01:54mloskotsetrecipients: + mloskot, tim.peters, amaury.forgeotdarc, pitrou, vstinner, christian.heimes, tim.golden, brian.curtin, V.E.O, m_python
2013-09-11 16:01:54mloskotlinkissue17797 messages
2013-09-11 16:01:54mloskotcreate