Free cookie consent management tool by TermsFeed poll class in python | Pythontic.com

Poll class in python

Overview:

While the select module provides the method select.poll(), which returns an instance of class poll, The poll class present in the select module provides methods that help in the aspects of the polling. That is registering for I/O events and poll for them to process the I/O as and when the I/O events occur during the polling.

 

List of methods of the class select.poll:

Method

Description

poll.register

Registers I/O events for a file descriptor.

poll.unregister

Unregisters the already registered I/O events for a file descriptor.

poll.modify

Unregisters the already registered I/O events for a file descriptor and registers the new set of I/O events.

poll.poll

Polls for a set of registered I/O events

 

 


Copyright 2025 © pythontic.com