python
Installation
SKILL.md
Python
Primary reference: the official Python site, https://www.python.org/ (documentation, PEP index, and downloads). Check the project's Python version before using newer syntax. For tutorial-style further reading, see https://realpython.com/; guidance here is original and paraphrased.
Be explicit, readable, and boring. Use the standard library first, type the public surface, and let tools enforce style.
Route to references
| Need | Reference |
|---|---|
| Idioms: comprehensions, generators, decorators, dunder | idioms |
| Type hints, dataclasses, protocols, mypy/pyright | typing-and-data-models |
| pytest, fixtures, parametrization, mocking | testing-with-pytest |
Venvs, pyproject.toml, uv/pip, ruff, packaging |
tooling-and-packaging |
asyncio, threads vs processes, the GIL |
concurrency |