PEP-8
At least some of Python's DNA is bound to the observation that code is generally read more often that it is written. That is the basis for significant functional aspects of its syntax, particularly those that relate to the structure of Python code, such as the use of indentation to indicate blocks of functionality. It should, perhaps, then come as no great surprise that one of the earliest Python Enhancement Proposals (PEPs) is a focused look at how to maintain readability of code where variations in style have no functional significance. PEP-8 is a long specification, some 29 pages if printed directly from the current Python page (www.python.org/dev/peps/pep-0008), but the significant aspects are worth summarizing here.
The first, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access