Python Style Guide: Hanging Indentation Explained

Copyright This document has been placed in the public domain. Typeshed repo https://lnkd.in/dpbtuzFs https://lnkd.in/dERgaqgj Donald Knuth's The TeXBook, pages 195 and 196. Hanging indentation is a type-setting style where all the lines in a paragraph are indented except the first line. In the context of Python, the term is used to describe a style where the opening parenthesis of a parenthesized statement is the last non-whitespace character of the line, with subsequent lines being indented until the closing parenthesis. Barry's GNU Mailman style guide https://lnkd.in/ddXsQvSs PEP: 8 Title: Style Guide for Python Code Author: Guido van Rossum <gu ido@python.org>, Barry Warsaw <barry@python.org>, Alyssa Coghlan <nc oghlan@gmail.com> Status: Active Type: Process Created: 05-Jul-2001 Post- History: 05-Jul-2001, 01-Aug-2013

To view or add a comment, sign in

Explore content categories