PyDocs

Nav

Networking and Interprocess Communication

BaseSelector.select

  • BaseSelector.select(timeout=None)
Perform the actual selection, until some monitored file objects are
ready or a timeout expires.

Parameters:
timeout -- if timeout > 0, this specifies the maximum wait time, in
           seconds
           if timeout <= 0, the select() call won't block, and will
           report the currently ready file objects
           if timeout is None, select() will block until a monitored
           file object becomes ready

Returns:
list of (key, events) for ready file objects
`events` is a bitwise mask of EVENT_READ|EVENT_WRITE
Changed in 3.5
  • 3.5: The selector is now retried with a recomputed timeout when interrupted by a signal if the signal handler did not raise an exception (see PEP 475 for the rationale), instead of returning an empty list of events before the timeout.
0 Examples
No examples for selectors/BaseSelector.select.
See Also
No see-alsos for selectors/BaseSelector.select
0 Notes
No notes for BaseSelector.select