Faidon Liambotis <parav...@debian.org> added the comment:
I missed that there is now also an os.eventfd_{write,read}(), so in the above os.write(self._event_fd, self._ONE) can become os.eventfd_write(self._event_fd, 1) and: os.read(self._event_fd, 8) can become: os.eventfd_read(self._event_fd) (the _ONE declaration will then be unnecessary and can be removed) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40485> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com