[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-19 Thread David Gilman
David Gilman added the comment: Reflecting on this a bit I wonder if the best of all worlds is to have an EpollExclusiveSelector whose modify() implementation just unregisters and registers the file descriptor. -- ___ Python tracker <ht

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
David Gilman added the comment: I also played with making another whole subclass that has it on by default, see this package https://github.com/dgilman/selector-epoll-exclusive That class could have EPOLLEXCLUSIVE on by default but could raise NotImplemented if you try and modify() it

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
Change by David Gilman : -- keywords: +patch pull_requests: +26284 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27819 ___ Python tracker <https://bugs.python.org/issu

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
New submission from David Gilman : Note that this is a different approach from the one taken in https://bugs.python.org/issue35517 although the issue is still the same. I've written a patch that allows users of selector.EpollSelector to enable EPOLLEXCLUSIVE on their file descriptors.

[issue22392] Clarify documentation of __getinitargs__

2014-09-11 Thread David Gilman
New submission from David Gilman: Implementations of __getinitargs__ return a tuple of the positional arguments for __init__. This wasn't initially apparent to me after reading the docs: I thought you were passing a tuple (args, kwargs) that would get called f(*args, **kwargs) and had

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread David Gilman
David Gilman added the comment: So the original motivation here was to piggyback on SIGINT in order to do something like this on Windows: http://stackoverflow.com/questions/132058/showing-the-stack-trace-from-a-running-python-application I've given Tim's patch a shot and I see that

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-22 Thread David Gilman
New submission from David Gilman: I opened this StackOverflow bug with an example simplified testcase. As you can see in the first comment a user added that this code worked under Python 2.6 on Windows and no longer works on 2.7. http://stackoverflow.com/questions/16686510/how-do-i-capture