PEP 8: The Style Guide for Python Code
This document gives coding conventions for the Python code comprising the standard library in the main Python distribution. Please see the companion informational PEP describing style guidelines for the C code in the C implementation of Python 1.
PEP 8: The Style Guide for Python Code PEP 8 — the Style Guide for Python Code This stylized presentation of the well-established PEP 8 was created by Kenneth Reitz (for humans). Introduction This document gives coding conventions for the Python code comprising the standard library in the main Python distribution. Please see the companion informational PEP describing style guidelines for the C code in the C implementation of Python 1 . This document and PEP 257 (Docstring Conventions) were adapted from Guido’s original Python Style Guide essay, with some additions from Barry’s style guide 2 .
related reading
- PEP 8 – Style Guide for Python Code | peps.python.orgpeps.python.org
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- Code Style — The Hitchhiker's Guide to Pythondocs.python-guide.org
- Style | Course Readings | 6.101 Fall 2022py.mit.edu
- PEP 20 – The Zen of Python | peps.python.orgpeps.python.org
- Command Line Interface Guidelinesclig.dev
- Google Style Guidesgoogle.github.io
- 9. Classes — Python 3.14.6 documentationdocs.python.org
- The Clojure Style Guideguide.clojure.style
- Google C++ Style Guidegoogle.github.io
- PEP 810 – Explicit lazy imports | peps.python.orgpeps.python.org
- Glossary — Python 3.14.6 documentationdocs.python.org