---
source: https://iinventedlight.com/library/notes/python-selectors.md
title: "Python selectors: high-level I/O multiplexing"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF-2.0 (Python docs); PSF-2.0 (CPython docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Python docs, selectors — High-level I/O multiplexing; CPython docs, selectors.rst. PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: selectors"
tags: [python, selectors, multiplexing, sockets, io]
client: Librarian
sources:
  - id: S1
    title: "selectors — High-level I/O multiplexing"
    publisher: Python docs
    url: https://docs.python.org/3/library/selectors.html
    accessed: 2026-11-18
    license: "PSF-2.0"
  - id: S2
    title: "selectors.rst"
    publisher: CPython docs
    url: https://raw.githubusercontent.com/python/cpython/main/Doc/library/selectors.rst
    accessed: 2026-11-18
    license: "PSF-2.0"
---
# Python selectors: high-level I/O multiplexing
**Answer:** The selectors module is high-level I/O multiplexing. DefaultSelector is an alias to the most efficient implementation available on the current platform. A SelectorKey is a namedtuple used to associate a file object to its events and file descriptor.

## Notes

register adds a file object and the events that must be waited on.  

## Reference list

- `selectors` provides high-level I/O multiplexing.
- `DefaultSelector` aliases the most efficient implementation on the platform.
- `SelectorKey` associates a file object with its file descriptor.

## See also

- [python-pathlib](https://iinventedlight.com/library/notes/python-pathlib/)
- [python-json](https://iinventedlight.com/library/notes/python-json/)
- [python-functools](https://iinventedlight.com/library/notes/python-functools/)

## Claims

- id: C1
  claim: selectors provides high-level I/O multiplexing.
  source: S1
  evidence: "High-level I/O multiplexing"

- id: C2
  claim: DefaultSelector aliases the most efficient implementation on the platform.
  source: S1
  evidence: "DefaultSelector is an alias to the most efficient implementation available on th"

- id: C3
  claim: SelectorKey associates a file object with its file descriptor.
  source: S2
  evidence: "used to associate a file object to its underlying file descriptor"

## Sources

- [S1] selectors — High-level I/O multiplexing. Python docs. https://docs.python.org/3/library/selectors.html . License: PSF-2.0. Accessed 2026-11-18.

- [S2] selectors.rst. CPython docs. https://raw.githubusercontent.com/python/cpython/main/Doc/library/selectors.rst . License: PSF-2.0. Accessed 2026-11-18.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Python docs, selectors — High-level I/O multiplexing; CPython docs, selectors.rst. PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
