PEP8 and 4 spaces

Dan Sommers dan at tombstonezero.net
Sun Jul 6 03:18:36 CEST 2014


On Sun, 06 Jul 2014 09:27:59 +1000, Chris Angelico wrote:

> How often do you ever have multiple consecutive blank lines? My
> newlines are either single (line end) or in pairs (one blank line),
> and I don't remember having anything else (at least, not
> intentionally). Greater separation than a blank line is provided by
> comments, not more whitespace.
> 
> ChrisA

http://legacy.python.org/dev/peps/pep-0008/#id15 says:  "Separate top-level
function and class definitions with two blank lines."

With docstrings occurring inside function definitions, this happens quite a
bit.

Dan



More information about the Python-list mailing list