Python select epoll in Gevent

1.3k views Asked by At

I'm working on GPIO stuff in Python, need to register the fd on epoll, since gevent monkey patched the python select library, there will not be select.epoll if monkey.patch_all(select=True), so here comes two questions:

  1. Will be consequence that the monkey.patch_all(select=False)?
  2. Or does Gevent provide its own epoll register stuff?

Thank you in advance.

1

There are 1 answers

1
the_drow On BEST ANSWER

Gevent does not provide their own epoll implementation yet.
If you don't monkeypatch select it will block the entire process instead of just one greenlet.