On this page
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
- Unix-only (not available on Windows); timeout is in milliseconds, unlike
select.select()which uses seconds.
REPL Inspect
from select import poll
help(poll)
Linked from
Related notes
- tuts/python3/stdlib_module/select/error Linked here; links to this page; shared tags: #select, #stdlib
- tuts/python3/stdlib_module/select/kevent Linked here; links to this page; shared tags: #select, #stdlib
- tuts/python3/stdlib_module/select/kqueue Linked here; links to this page; shared tags: #select, #stdlib
- tuts/python3/stdlib_module/select/select Linked here; links to this page; shared tags: #select, #stdlib
- tuts/python3/stdlib_module/select links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib