[Tutor] Correct style of line break when chaining methods

boB Stepp robertvstepp at gmail.com
Sat Jul 10 12:20:26 EDT 2021


On Sat, Jul 10, 2021 at 11:03 AM Manprit Singh
<manpritsinghece at gmail.com> wrote:
>
> Dear sir,
>
> See in this particular example, the length of the line is 75 characters ,
> and according to PEP 8, in Python a line must not exceed 69 characters.

Are you sure you did not misread the max recommended line length?

https://www.python.org/dev/peps/pep-0008/#id19 says:

<quote>
Maximum Line Length

Limit all lines to a maximum of 79 characters.
</quote>

There are some qualifications later for comments and docstrings, but
these don't apply to your example.

boB Stepp


More information about the Tutor mailing list