From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hamza.pair.com (hamza.pair.com [209.68.5.143]) by sourceware.org (Postfix) with ESMTPS id A8F493857BB5 for ; Thu, 13 Oct 2022 09:44:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A8F493857BB5 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pfeifer.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pfeifer.com Received: from hamza.pair.com (localhost [127.0.0.1]) by hamza.pair.com (Postfix) with ESMTP id 39FA733E89; Thu, 13 Oct 2022 05:44:34 -0400 (EDT) Received: from naga (ip-109-43-112-27.web.vodafone.de [109.43.112.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hamza.pair.com (Postfix) with ESMTPSA id 0B98B33E94; Thu, 13 Oct 2022 05:44:32 -0400 (EDT) Date: Thu, 13 Oct 2022 11:44:26 +0200 (CEST) From: Gerald Pfeifer To: =?ISO-8859-15?Q?Martin_Li=A8ka?= cc: gcc-patches@gcc.gnu.org, Gaius Mulley , David Malcolm Subject: Re: [DOCS] Python Language Conventions In-Reply-To: Message-ID: <73efef2e-0a77-529c-73b3-1164480d3a86@pfeifer.com> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-396184458-1665654273=:7197" X-Scanned-By: mailmunge 3.09 on 209.68.5.143 X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-396184458-1665654273=:7197 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Hi Martin, On Thu, 13 Oct 2022, Martin Liška wrote: > I think we should add how Python scripts should be formatted. I noticed > that while reading the Modula-2 patchset where it follows the C/C++ style > when it comes to Python files. good initiative, thank you! This makes sense to me, alas I'm not a Python hacker, so best wait to see what David and Gaius think, too? Some suggestions on the web side of things: > +
  • Python Language Conventions Since the name of the page already is codingconventions.html, I suggest making this simply "#python" - shorter and simpler. :-) > +Python scripts should follow PEP 8 – Style Guide for Python Code > +which can be verified by flake8 tool. ...by the...tool. > +We do also recommend using the following flake8 plug-ins: Here maybe simply say "We recommend using"? Hope this helps, Gerald --8323328-396184458-1665654273=:7197--