I use python's epoll but it can't use event.data.ptr like in c++.
Sometimes I will register class A.fd and sometimes I will register class B.fd.
You can always maintain a separate map from
B. Then when an event gets triggered, lookup based on
Doesn't look like
epoll has a richer interface, even in Python 3+