[issue29255] selects.KqueueSelector behaves incorrectly when no fds are registered
Russell Davis added the comment: This looks like it's the cause of https://bugs.python.org/issue25680 -- nosy: +russelldavis ___ Python tracker <https://bugs.python.org/issue29255> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25680] Selector.select() hangs when there is nothing to select
Russell Davis added the comment: Looks like this is caused by #29255 -- nosy: +russelldavis ___ Python tracker <https://bugs.python.org/issue25680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40251] selectors.KqueueSelector hangs on EOF, unlike other selectors
New submission from Russell Davis : Repro (on macOS): from selectors import KqueueSelector, EVENT_READ with open('/tmp/foo', 'w') as f: f.write("bar") sel = KqueueSelector() sel.register(f, EVENT_READ) sel.select() The above code will hang on the last line. If you change KqueueSelector to PollSelector or SelectSelector, it will not hang. Per msg255116, the different selectors should behave consistently. -- components: IO, Library (Lib), asyncio messages: 366167 nosy: asvetlov, russelldavis, yselivanov priority: normal severity: normal status: open title: selectors.KqueueSelector hangs on EOF, unlike other selectors versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue40251> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40252] selectors.KqueueSelector should not be the default selector
New submission from Russell Davis : There are at least two outstanding bugs where KqueueSelector behaves differently than the other selectors: #40251 #25680 This breaks the abstraction of being able to rely on DefaultSelector() to provide consistent behavior. At least on macOS, PollSelector works reliably, so I propose using that instead of KqueueSelector when setting DefaultSelector. (Even if the above bugs eventually get fixed, sticking with PollSelector when possible seems more likely to avoid similar future issues.) -- components: IO, Library (Lib), asyncio messages: 366168 nosy: asvetlov, russelldavis, yselivanov priority: normal severity: normal status: open title: selectors.KqueueSelector should not be the default selector versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue40252> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29255] selects.KqueueSelector behaves incorrectly when no fds are registered
Change by Russell Davis : -- keywords: +patch pull_requests: +18860 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19508 ___ Python tracker <https://bugs.python.org/issue29255> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25680] Selector.select() hangs when there is nothing to select
Change by Russell Davis : -- keywords: +patch pull_requests: +18861 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19508 ___ Python tracker <https://bugs.python.org/issue25680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25680] Selector.select() hangs when there is nothing to select
Russell Davis added the comment: @gvanrossum PR is ready for review: https://github.com/python/cpython/pull/19508 -- ___ Python tracker <https://bugs.python.org/issue25680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25680] Selector.select() hangs when there is nothing to select
Russell Davis added the comment: I think this got auto-closed due to a link in the PR. Note that, per https://github.com/python/cpython/pull/19508#issuecomment-613317021, the behavior is still inconsistent on windows. I think the solution there will have to be a call to sleep() when the list of fds is empty. -- ___ Python tracker <https://bugs.python.org/issue25680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40507] FileNotFound error raised by os.exec* doesn't contain filename
New submission from Russell Davis : To repro: >>> import os, sys >>> os.execv("nosuchfile", ["nosuchfile"]) Traceback (most recent call last): File "", line 1, in FileNotFoundError: [Errno 2] No such file or directory >>> print(sys.last_value.filename) None -- components: Library (Lib) messages: 368106 nosy: russelldavis priority: normal severity: normal status: open title: FileNotFound error raised by os.exec* doesn't contain filename versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue40507> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40507] FileNotFound error raised by os.exec* doesn't contain filename
Change by Russell Davis : -- keywords: +patch pull_requests: +19230 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19915 ___ Python tracker <https://bugs.python.org/issue40507> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com