References

PEP 8 — Style Guide for Python Code

Guido van Rossum, Barry Warsaw, & Alyssa Coghlan (2001)

Python Enhancement Proposals.

URL: https://peps.python.org/pep-0008/

Abstract. The definitive style guide for Python code, covering indentation, naming conventions, import ordering, whitespace, comments, and documentation strings. PEP 8 is the foundation of Python's remarkably consistent coding style across the ecosystem. Nearly every linter, formatter, and code review guideline is rooted in its recommendations.

Tags: python style pep conventions

This site is currently in Beta. Please email Chris Paton (cpaton@gmail.com) with any suggestions, questions or comments.