PEP 8 : Maximum line Length :

Roy Smith roy at panix.com
Tue May 13 20:51:00 EDT 2014


In article <mailman.9961.1399984013.18130.python-list at python.org>,
 Ben Finney <ben at benfinney.id.au> wrote:

> Roy Smith <roy at panix.com> writes:
> 
> > >    p = Subprocess.Popen(shlex.split(cmd),
> > >                         stdout=subprocess.PIPE,
> > >                         stderr=subprocess.PIPE)
> 
> That is PEP 8 conformant, but I find it hurts maintainability: it is far
> too much indentation. Horizontal space is costly, because so much
> indentation severely limits the length of names etc. that you can use on
> the continuation lines.

It only does that if you limit yourself to 80 character lines.



More information about the Python-list mailing list