STINNER Victor <victor.stin...@gmail.com> added the comment: > I recommend to use selectors.PollSelector and fallback on > selectors.SelectSelector where not available (Windows) in order to use 1 > syscall only. That's what we did already in socket.py, subprocess.py and > others.
It would be nice to have an API in selectors to get a "lightweight" selector, for selector and poll. This API would be appropriate to check on macOS if poll() works or not: bpo-28087. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31610> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com