python-patterns
Patrones idiomáticos de Python, estándares PEP 8, type hints y buenas prácticas para construir aplicaciones Python robustas, eficientes y mantenibles.
Original · translation did not pass checksTarget: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original text
Topics in the source
- Patrones de Desarrollo Python
- Cuándo Activar
- Principios Fundamentales
- 1. La Legibilidad Cuenta
- 2. Explícito es Mejor que Implícito
- 3. EAFP - Es Más Fácil Pedir Perdón que Permiso
- Type Hints
- Anotaciones de Tipo Básicas
Patrones idiomáticos de Python y buenas prácticas para construir aplicaciones robustas, eficientes y mantenibles. Escribir código Python nuevo Revisar código Python Refactorizar código Python existente Diseñar paquetes/módulos Python Python prioriza la legibilidad. El código debe ser obvio y fácil de entender. Evitar la magia; ser claro sobre lo que hace el código. Python prefiere el manejo de excepciones sobre verificar condiciones. | Patrón | Descripción | |--------|-------------| | EAFP | Es Más Fácil Pedir Perdón que Permiso | | Context managers | Usar with para gestión de recursos | | List comprehensions | Para transformaciones simples | | Generadores | Para evaluación lazy y datasets grandes | | Type hints | Anotar las firmas de funciones | | Dataclasses | Para contenedores de datos con métodos auto-generados | | slots | Para optimización de memoria | | f-strings | Para formateo de cadenas (Python 3.6+) | | pathlib.Path | Para operaciones de rutas (Python 3.4+) | | enumerate | Para pares índice-elemento en loops | Recuerda: El código Python debe ser legible, explícito y seguir el principio de la menor sorpresa. Ante la duda, prioriza la claridad sobre la ingeniosidad.
- Source repository
- affaan-m/ECC
- Source file
- docs/es/skills/python-patterns/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:48.805Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.