[issue29255] selects.KqueueSelector behaves incorrectly when no fds are registered

2020-04-10 Thread Russell Davis
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/is

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-10 Thread Russell Davis
Russell Davis added the comment: Looks like this is caused by #29255 -- nosy: +russelldavis ___ Python tracker <https://bugs.python.org/issue25680> ___ ___ Pytho

[issue40251] selectors.KqueueSelector hangs on EOF, unlike other selectors

2020-04-10 Thread Russell Davis
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 ab

[issue40252] selectors.KqueueSelector should not be the default selector

2020-04-10 Thread Russell Davis
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

[issue29255] selects.KqueueSelector behaves incorrectly when no fds are registered

2020-04-14 Thread Russell Davis
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/issu

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-14 Thread Russell Davis
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/issu

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-15 Thread Russell Davis
Russell Davis added the comment: @gvanrossum PR is ready for review: https://github.com/python/cpython/pull/19508 -- ___ Python tracker <https://bugs.python.org/issue25

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-15 Thread Russell Davis
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

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-05-04 Thread Russell Davis
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.

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-05-04 Thread Russell Davis
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/issu