On this page
  1. select.poll
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

select.poll

Prev: select.kqueue | Up: select | Next: select.select
Rel: select.error, select.kevent, select.kqueue, select.select
Ref: docs.python.org — select.poll
Tags: #public #python3 #stdlib #select


Import

import select
from select import poll

Signature & Overview

select.poll()

Returns a polling object.

Usage

import select

if hasattr(select, 'poll'):
    p = select.poll()
    assert p.poll(0) == []

Gotchas

REPL Inspect

from select import poll
help(poll)

Linked from

Related notes