On this page
select.kqueue
Prev: select.kevent | Up: select | Next: select.poll
Rel: select.error, select.kevent, select.poll, select.select
Ref: docs.python.org — select.kqueue
Tags: #public #python3 #stdlib #select
Import
import select
from select import kqueue
Signature & Overview
select.kqueue()
Kqueue syscall wrapper.
Methods & Attributes
kqueue.close(self, /)— Close the kqueue control file descriptor.kqueue.control(self, changelist, maxevents, timeout=None, /)— Calls the kernel kevent function.kqueue.fileno(self, /)— Return the kqueue control file descriptor.kqueue.fromfd(fd, /)— Create a kqueue object from a given control fd.
Usage
import select
if hasattr(select, 'kqueue'):
kq = select.kqueue()
kq.close()
Gotchas
- BSD/macOS-only: Always close
kqueueobjects when done.
REPL Inspect
from select import kqueue
help(kqueue)
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/poll 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