# Python

> Use when working with a language that lets you work quickly and integrate systems more effectively

- Skill: `tomevault-io/python` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/python`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/python/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/python

---


# Python Skill

## Best Practices
1.  **PEP 8**: Follow standard style guide (Snake case for vars, 4 spaces indent).
2.  **Type Hints**: Use `typing` module (List, Optional, etc.) for robust code.
3.  **Virtual Envs**: Always use `venv` or `poetry`. Never install global pip packages.
4.  **Exceptions**: Catch specific exceptions (`ValueError`), never bare `except:`.

## Common Pitfalls
*   **Mutable Defaults**: `def func(list=[]):` causes bugs. Use `None` instead.
*   **GIL**: Threads don't speed up CPU tasks. Use `multiprocessing`.

## References
*   [Python Docs](https://docs.python.org/3/)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/sami) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-15 -->

