Manual talk:Coding conventions/Python

About this board

ArielGlenn (talkcontribs)

I don't know anyone who believes in the 80 character line length any more. Perhaps we can change this to reflect current usage, which is I think around 100 characters.

BDavis (WMF) (talkcontribs)

/me raises hand as someone who believes in the 78 character line length for all source code

ArielGlenn (talkcontribs)

OK, I know one person :-D

Reply to "line length"

Docstrings and function annotation

3
André Costa (WMSE) (talkcontribs)

The formatting of the example looks to be off (compared to PEP 257).

The first line should end in a full stop. Subsequent lines should be left-aligned with the """.

Bináris (talkcontribs)

You are right, I corrected it.

Lokal Profil (talkcontribs)

I also added a linebreak. Since it is not a one-line docstrings.

Reply to "Docstrings and function annotation"
There are no older topics
Return to "Coding conventions/Python" page.