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
- PEP 20 – The Zen of Python | peps.python.orgpeps.python.org
- Clean up your code: How to create your own C# code styleblog.unity.com
- CSC 151 - Code Formatting and Styleeikmeier.sites.grinnell.edu
- Google Style Guidesgoogle.github.io
- SQL style guide by Simon Holywellsqlstyle.guide
- The Clojure Style Guideguide.clojure.style
- 9. Classes — Python 3.14.6 documentationdocs.python.org
- Glossary — Python 3.14.6 documentationdocs.python.org
- Programming FAQ — Python 3.14.6 documentationdocs.python.org