select.epoll

class select.epoll

Returns an epolling object

sizehint must be a positive integer or -1 for the default size. The sizehint is used to optimize internal data structures. It doesn’t limit the maximum number of monitored events.

Methods

__format__ default object formatter
__new__((S, ...)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
close(() -> None) Close the epoll control file descriptor.
fileno(() -> int) Return the epoll control file descriptor.
fromfd((fd) -> epoll) Create an epoll object from a given control fd.
modify((fd, eventmask) -> None) fd is the target file descriptor of the operation
poll(([timeout=-1[[, maxevents]) Wait for events on the epoll file descriptor for a maximum time of timeout in seconds (as float).
register((fd[, eventmask]) -> None) Registers a new fd or raises an IOError if the fd is already registered.
unregister((fd) -> None) fd is the target file descriptor of the operation.

Attributes

closed True if the epoll handler is closed