Jump to content
MediaWiki

Manual talk:Coding conventions/Python

Add topic
From mediawiki.org
Latest comment: 5 years ago by ArielGlenn in topic line length
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made.

Docstrings and function annotation

[edit ]
Latest comment: 7 years ago 3 comments3 people in discussion

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 """. André Costa (WMSE) (talk) 10:50, 27 October 2016 (UTC) Reply

You are right, I corrected it. Bináris talk 05:37, 2 August 2017 (UTC) Reply
I also added a linebreak. Since it is not a one-line docstrings. Lokal_Profil (talk) 06:45, 2 August 2017 (UTC) Reply

line length

[edit ]
Latest comment: 5 years ago 3 comments2 people in discussion

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. ArielGlenn (talk) 10:46, 26 February 2020 (UTC) Reply

/me raises hand as someone who believes in the 78 character line length for all source code BDavis (WMF) (talk) 17:03, 26 February 2020 (UTC) Reply
OK, I know one person :-D ArielGlenn (talk) 17:58, 26 February 2020 (UTC) Reply

AltStyle によって変換されたページ (->オリジナル) /