[Python-ideas] PEP 8 update on line length

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 19 16:44:37 EST 2019


Samuel Colvin wrote:
> I just think that code with a 7 line function header is much 
> harder to read and understand than code with a one line function header.

But to me, a one-line function header that contains 7 lines worth
of charaacters is *less* readable than a 7-line header, as long
as it's formatted intelligently.

The readability problem here is not caused by insufficient width.
It's caused by the need to stuff a bunch of annotations into the
header.

-- 
Greg


More information about the Python-ideas mailing list