X-Loop: help-debbugs@HIDDEN Subject: bug#34268: 27.0.50; wrong indentation in python mode Resent-From: Sam Steingold <sds@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 31 Jan 2019 21:06:02 +0000 Resent-Message-ID: <handler.34268.B.154896871730419 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34268 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Reply-To: sds@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.154896871730419 (code B ref -1); Thu, 31 Jan 2019 21:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Jan 2019 21:05:17 +0000 Received: from localhost ([127.0.0.1]:53407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gpJWK-0007uT-PW for submit <at> debbugs.gnu.org; Thu, 31 Jan 2019 16:05:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <sam.steingold@HIDDEN>) id 1gpJWG-0007u5-1m for submit <at> debbugs.gnu.org; Thu, 31 Jan 2019 16:05:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:48830) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <sam.steingold@HIDDEN>) id 1gpJWA-0006FV-VM for submit <at> debbugs.gnu.org; Thu, 31 Jan 2019 16:05:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <sam.steingold@HIDDEN>) id 1gpJW9-0006mR-R4 for bug-gnu-emacs@HIDDEN; Thu, 31 Jan 2019 16:05:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <sam.steingold@HIDDEN>) id 1gpJW7-0006EX-TB for bug-gnu-emacs@HIDDEN; Thu, 31 Jan 2019 16:05:01 -0500 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:43328) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <sam.steingold@HIDDEN>) id 1gpJW6-0006DO-9U; Thu, 31 Jan 2019 16:04:58 -0500 Received: by mail-qt1-x834.google.com with SMTP id i7so5080010qtj.10; Thu, 31 Jan 2019 13:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:return-receipt-to:reply-to:date:message-id :mime-version; bh=KpoyCibmf7G41Lsk0qKJHiPVu+tZcxrmbabUnHXW7ys=; b=CtamG2tEAxH2McJplivpGc0mlOgY5+iRdrWKdk31CHpl2qpZ8tIKnWFhijrKMmzT/r P0+BryYRAa1NC2TRvdjPM0fyaTRf9Ls/15QsvOjmeTD/GMUglQeWS4CQqBfrJ6H30tc3 9bSYGdnE2zbk7YqL7ruE/UCCdQrm1epriNrB1kMrDK7JIui9TcLpWPnLm276tOFwupP4 6rTm+/fRtBhc+j/lB5nQ6QBtcxgBuyTHpbKdg2boUEUJ4OR/2QB+xKD7qLudUlREbdUH bDRTd9op8vm/s6D07lW9pnS9Zt9qm/Topt2C8wHjGJee7IovFHkC+V7inOZdNf+7Qewt yJmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:return-receipt-to :reply-to:date:message-id:mime-version; bh=KpoyCibmf7G41Lsk0qKJHiPVu+tZcxrmbabUnHXW7ys=; b=qTy2SItQWxX6fDrcbtuAcK77+6AvpnbJAQkA2pklxNGU62pj/m1q0b7JSHl+S74fbj jro+i5+D8zqdmM9waDsg0FF3DKqzCkeYQjdoU5/+KDZX3JlmjNU/59jAPU81S9pwX9xK +qlTedzND3pyE7Di6sZ+QHLu+aiM9rvfaWyMLV9iNX/J1JRLf6q9mLFSwVGOlOPF439P Bd3n5bCYH4zFQSQ+jyR19t0vXZAFTwCM0K9oOPNk9WCu2Fdnly6FaDYznjVW/OrHLLVJ N9JIDbweQ7JTkeerdSM019ShhePWUPC6dNMbiV8W8eBwp1LvwQnoc361sCk9px+ZL7ED YRYg== X-Gm-Message-State: AJcUukf1GVGAmQZ4IU+kG726S1dENTUqbS5qZajheWFKngZMmH3AdMVP Fxqlu0oGdEuYYwi+pYQ0EraT4zA= X-Google-Smtp-Source: ALg8bN7Q7nwsf+AYqZjkqCN8qoTdH76MZgkS+4qeHO13NPCeiME2eskYm6EJpXsqOkqZ1nGxIxQXRQ== X-Received: by 2002:aed:3105:: with SMTP id 5mr36400873qtg.364.1548968696106; Thu, 31 Jan 2019 13:04:56 -0800 (PST) Received: from C-6111-SSTEINGO ([38.101.106.18]) by smtp.gmail.com with ESMTPSA id y12sm7213715qta.13.2019.01.31.13.04.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Jan 2019 13:04:55 -0800 (PST) From: Sam Steingold <sds@HIDDEN> X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Thu, 31 Jan 2019 16:04:54 -0500 Message-ID: <t16bg67eekczd5.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::834 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: emacs -Q C-x b z.py RET M-x python-mode insert this code: --8<cut herestart>8--- def foo(x): return [bar(x) for y in zot( x)] --8<cut hereend>8--- Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sam.steingold[at]gmail.com) 0.1 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.1 (/) emacs -Q C-x b z.py RET M-x python-mode insert this code: --8<---------------cut here---------------start------------->8--- def foo(x): return [bar(x) for y in zot( x)] --8<---------------cut here---------------end--------------->8--- Note that the last line has 4 extra indentation characters. It should be --8<---------------cut here---------------start------------->8--- def foo(x): return [bar(x) for y in zot( x)] --8<---------------cut here---------------end--------------->8--- In GNU Emacs 27.0.50 (build 2, x86_64-apple-darwin17.7.0, NS appkit-1561.60 Version 10.13.6 (Build 17G5019)) of 2019-01-28 built on C-6111-SSTEINGO Repository revision: 239386806ec637419786bd1ab21e002bf2d501c1 Repository branch: master Windowing system distributor 'Apple', version 10.3.1561 System Description: Mac OS X 10.13.6 Configured using: 'configure --with-mailutils --with-ns PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig' Configured features: IMAGEMAGICK NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS JSON CANNOT_DUMP LCMS2 GMP Important settings: value of $LANG: C locale-coding-system: utf-8-unix -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1561 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com http://islamexposedonline.com http://americancensorship.org http://memri.org If a train station is a place where a train stops, what's a workstation?
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: sds@HIDDEN Subject: bug#34268: Acknowledgement (27.0.50; wrong indentation in python mode) Message-ID: <handler.34268.B.154896871730419.ack <at> debbugs.gnu.org> References: <t16bg67eekczd5.fsf@HIDDEN> X-Gnu-PR-Message: ack 34268 X-Gnu-PR-Package: emacs Reply-To: 34268 <at> debbugs.gnu.org Date: Thu, 31 Jan 2019 21:06:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 34268 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 34268: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34268 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#34268: 27.0.50; wrong indentation in python mode Resent-From: Bhavin Gandhi <bhavin7392@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 19 Feb 2019 13:14:01 +0000 Resent-Message-ID: <handler.34268.B34268.155058203319565 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: sds@HIDDEN, 34268 <at> debbugs.gnu.org Received: via spool by 34268-submit <at> debbugs.gnu.org id=B34268.155058203319565 (code B ref 34268); Tue, 19 Feb 2019 13:14:01 +0000 Received: (at 34268) by debbugs.gnu.org; 19 Feb 2019 13:13:53 +0000 Received: from localhost ([127.0.0.1]:53997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gw5Dc-00055T-U1 for submit <at> debbugs.gnu.org; Tue, 19 Feb 2019 08:13:53 -0500 Received: from mail-pg1-f172.google.com ([209.85.215.172]:32956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bhavin7392@HIDDEN>) id 1gw5Db-00055F-9Y for 34268 <at> debbugs.gnu.org; Tue, 19 Feb 2019 08:13:51 -0500 Received: by mail-pg1-f172.google.com with SMTP id h11so7774635pgl.0 for <34268 <at> debbugs.gnu.org>; Tue, 19 Feb 2019 05:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=8LsEFmGzFJ+Ndkgf8rfD1Fn3d0Rv2BvjgF+oWZF6d9Q=; b=Pks98LFvN6StiVriQkMxikX4yTDybeQHPl4ngvfNx0/Xd4w6ozlKY2nksO2ngOE2TB WoTzOEj4Xh0u3RdLcLfuGHCCcA4QIAYoDeENI2ZBSpzI7kl4Am5aJHo2J7Ig7Znj3yBB MpChjtVuJlmTFxxVX3ncC0DCC/qna8EvdMi5Ed5dueldd4Xl3iNN6WUBWVuxtXuUkIu6 PtkZb0Yj3Munt5JZ2fyqel6PgGRXMAxFpaoxmfV9uLpY6/U0/9clBLArjzu+8hyNZB9I pojNLBR2juCh0cT+mhfJbESG6qzUNIvwwG86GLMJIgnSzUfFY4eMKNjr9piu3AZPdbwY gUEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8LsEFmGzFJ+Ndkgf8rfD1Fn3d0Rv2BvjgF+oWZF6d9Q=; b=p4H6HrhNQAjeDybhz3Ej9KLPoZ/DloF1NXyjXh4BvSVDNpX8PH/VuN599RJb4yrKRa cg6Omk+P+c3gfUMr1B6nMURgLeMxEN8Tf1+Dk3eyu2IMy14yV1LXzrqZWsYLv/oh6Zae dQRAOoxc6sRZg4ljfe+uxdaYTZwezV6reIdpgQpYL7erHQat+6ZrI46FYesBAzsnoaDf P31+7iaVrIZVfQBIl8k8KlrajEiAx9cUrQutt7Aw6FlhUi3Rk0zCuK3xbXl5Z5gTKQ59 gq3Ned4uv7rRTrZobNZX7/QaJ7SP/kA/6NH2ccknksJpMuqWvYdoCaRSX4g2FcImR20d LeVw== X-Gm-Message-State: AHQUAubBjQVF6aTTJOYgisvOD1HFhfz1Xq7SfVurFPLG5NIlWgLaO9A1 840Adc6t37pQFi2U8uKMYO2Wjlbx X-Google-Smtp-Source: AHgI3Ibn9j0aUH4LfyJiKI2hK6yCzA0nao+7sifYHs0EI8ip+vljydsJaD35HOJPm6jG2pjQqYjWew== X-Received: by 2002:a63:2682:: with SMTP id m124mr22656473pgm.35.1550582024943; Tue, 19 Feb 2019 05:13:44 -0800 (PST) Received: from [192.168.0.11] ([114.143.30.174]) by smtp.gmail.com with ESMTPSA id 33sm14791269pgs.81.2019.02.19.05.13.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 05:13:44 -0800 (PST) References: <t16bg67eekczd5.fsf@HIDDEN> From: Bhavin Gandhi <bhavin7392@HIDDEN> Message-ID: <79d1d771-c182-d0ca-b69d-b0e4e97d6138@HIDDEN> Date: Tue, 19 Feb 2019 18:43:40 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <t16bg67eekczd5.fsf@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) On 2/1/19 2:34 AM, Sam Steingold wrote: > --8<---------------cut here---------------start------------->8--- > def foo(x): > return [bar(x) > for y in zot( > x)] > --8<---------------cut here---------------end--------------->8--- > Can you please point to section from PEP8 this code violates? I tried to find a related section but not sure which section to consider. Also flake8 does not give any error for both the snippets.
X-Loop: help-debbugs@HIDDEN Subject: bug#34268: 27.0.50; wrong indentation in python mode Resent-From: Sam Steingold <sds@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 19 Feb 2019 13:55:01 +0000 Resent-Message-ID: <handler.34268.B34268.155058445523375 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Bhavin Gandhi <bhavin7392@HIDDEN> Cc: 34268 <at> debbugs.gnu.org Received: via spool by 34268-submit <at> debbugs.gnu.org id=B34268.155058445523375 (code B ref 34268); Tue, 19 Feb 2019 13:55:01 +0000 Received: (at 34268) by debbugs.gnu.org; 19 Feb 2019 13:54:15 +0000 Received: from localhost ([127.0.0.1]:54023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gw5qg-00064x-Ju for submit <at> debbugs.gnu.org; Tue, 19 Feb 2019 08:54:14 -0500 Received: from mail-wm1-f53.google.com ([209.85.128.53]:33962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <sam.steingold@HIDDEN>) id 1gw5qe-00064j-G5 for 34268 <at> debbugs.gnu.org; Tue, 19 Feb 2019 08:54:12 -0500 Received: by mail-wm1-f53.google.com with SMTP id y185so2321617wmd.1 for <34268 <at> debbugs.gnu.org>; Tue, 19 Feb 2019 05:54:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0SV4wToMTcV4aGd4EMl8AsSoyxjmP+eo+pNaipbhiG0=; b=LXWOCmv0gaEWHyx22wHyGkaTpJzgjoC4vVVtzwFQUvPesMhjJKmbogcfDp9owvoARL nwpvE8VUSIg8gMa1nKbRnU+BofNdBStPYVwy6utwgOPdRFdMDPUg3t9KZX7ntn+cxG98 r9iA0x1Qn2j/KUXp2gH/mnmyAl4h42pTnkzJJY58OH8cAN47SX6TzlaWY2vtiqHyNJW0 wBleedvLK0L8n4nlVhLNforBNQAX2ILtSVLeNJTNqm0wun/zi7hFgifES3dNviljC1xE iPytalywdrSA7rtzauob2B/dpluZvLvyWwbpNwUeHGLU+/qeN61y9xZON1ESyXZVF8p6 mbXg== X-Gm-Message-State: AHQUAuZYg0YwFmz1Bf+s+yVAo8Lnyja4PUTmvSOTlSpozFs3BGqlBJMg GcCzgfAZMoRSTPTJ2EEI5gpEd4870yScoF5/Cw== X-Google-Smtp-Source: AHgI3IagfsJW5QkkKkG4e9HiWhInSEKD1nYa6ZO5QzgizEkxfaWf0HP4XYi8OljiMrBJkQ/IJ87TsdSHRwThtrYFMvk= X-Received: by 2002:a7b:cb49:: with SMTP id v9mr2968382wmj.138.1550584446595; Tue, 19 Feb 2019 05:54:06 -0800 (PST) MIME-Version: 1.0 References: <t16bg67eekczd5.fsf@HIDDEN> <79d1d771-c182-d0ca-b69d-b0e4e97d6138@HIDDEN> In-Reply-To: <79d1d771-c182-d0ca-b69d-b0e4e97d6138@HIDDEN> From: Sam Steingold <sds@HIDDEN> Date: Tue, 19 Feb 2019 08:53:55 -0500 Message-ID: <CAFsbZ7Zudf8_hGeZeWpA8JiS7DDJkx4qDGOLYX-vfaxcWeGsXQ@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000022415705823f9316" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) --00000000000022415705823f9316 Content-Type: text/plain; charset="UTF-8" pylint reports convention (C0330, bad-continuation, ) Wrong hanging indentation before block (remove 4 spaces). On Tue, Feb 19, 2019 at 8:14 AM Bhavin Gandhi <bhavin7392@HIDDEN> wrote: > On 2/1/19 2:34 AM, Sam Steingold wrote: > > --8<---------------cut here---------------start------------->8--- > > def foo(x): > > return [bar(x) > > for y in zot( > > x)] > > --8<---------------cut here---------------end--------------->8--- > > > > Can you please point to section from PEP8 this code violates? I tried to > find a related section but not sure which section to consider. Also > flake8 does not give any error for both the snippets. > -- Sam Steingold <http://sds.podval.org> <http://www.childpsy.net> < http://steingoldpsychology.com> --00000000000022415705823f9316 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">pylint reports=C2=A0<inp= ut name=3D"virtru-metadata" type=3D"hidden" value=3D"{"email-policy&qu= ot;:{"state":"closed","expirationUnit":"= days","disableCopyPaste":false,"disablePrint":fals= e,"disableForwarding":false,"enableNoauth":false,"= expires":false,"isManaged":false},"attachments":{}= ,"compose-id":"52","compose-window":{"se= cure":false}}"><div>convention (C0330, bad-continuation, ) Wrong hangi= ng indentation before block (remove 4 spaces).<br></div><div><br></div></di= v></div><br><div class=3D"gmail_quote" style=3D""><div dir=3D"ltr" class=3D= "gmail_attr">On Tue, Feb 19, 2019 at 8:14 AM Bhavin Gandhi <<a href=3D"m= ailto:bhavin7392@HIDDEN">bhavin7392@HIDDEN</a>> wrote:<br></div><b= lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le= ft:1px solid rgb(204,204,204);padding-left:1ex">On 2/1/19 2:34 AM, Sam Stei= ngold wrote:<br> > --8<---------------cut here---------------start------------->8--= -<br> > def foo(x):<br> >=C2=A0 =C2=A0 =C2=A0 return [bar(x)<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for y in zot(<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 x)]<br> > --8<---------------cut here---------------end--------------->8--= -<br> > <br> <br> Can you please point to section from PEP8 this code violates? I tried to <b= r> find a related section but not sure which section to consider. Also <br> flake8 does not give any error for both the snippets.<br> </blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"= class=3D"gmail_signature">Sam Steingold <<a href=3D"http://sds.podval.o= rg" target=3D"_blank">http://sds.podval.org</a>> <<a href=3D"http://w= ww.childpsy.net" target=3D"_blank">http://www.childpsy.net</a>> <<a h= ref=3D"http://steingoldpsychology.com" target=3D"_blank">http://steingoldps= ychology.com</a>></div></div> --00000000000022415705823f9316--
Received: (at control) by debbugs.gnu.org; 28 Feb 2019 18:01:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 28 13:01:03 2019 Received: from localhost ([127.0.0.1]:55501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gzPzS-0002CH-Sd for submit <at> debbugs.gnu.org; Thu, 28 Feb 2019 13:01:03 -0500 Received: from mail-pg1-f173.google.com ([209.85.215.173]:34591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bhavin7392@HIDDEN>) id 1gzPzQ-0002Be-Hi for control <at> debbugs.gnu.org; Thu, 28 Feb 2019 13:01:01 -0500 Received: by mail-pg1-f173.google.com with SMTP id i130so10093859pgd.1 for <control <at> debbugs.gnu.org>; Thu, 28 Feb 2019 10:01:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=kFsDU8maEYJww4/NAD1nZ5Vvp9WKz2M5kltA3oznmf4=; b=oZDuk8okz1cgaAxze/fg1v1FobkrWKPUaoPFbGXyM5QvLgOmOdu3pBYdK0JoeK0lER KLXMv4oMdxXusthgdNpyJgG78J9OEhQTtB60StmXCOFG9+vqPWZ99W5QTFVZ8sfh8g1h t2VHF9pd9q/htjvZDempwxhOVO+WDwWkvDHvyNg36dKm2zbkArAn4DBP/rtYxyTzIaYM VYqugRrBH5rWTYozsxyO5WNblyBA/7ZmNoC3HHnFGECpBVqUArQeOO0zyT8o4H8HMe7r gWtQcKaTvJ0w1hTz1BeBKvTJJrLcWHedkI1+v733olXiQyywvLadAmOZS6mK/xF7pBBj LwVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=kFsDU8maEYJww4/NAD1nZ5Vvp9WKz2M5kltA3oznmf4=; b=fHLbccWBkJHrd6nd2wch8Iwo9m0f7SfefxATR30FNowJooQ4ZK8prCERkL835KlOpr ZvMMUzglShuU+eM4Trg90vs1pyjy8fqwM0iLS4QM3bZt4/9zHBQBlPat6dCsOPZA1cje xJ78DSImf5kb9JqVNrLSNciemyN+u48L5HzF4yRT/F8vC+sKfyAAAvZfy/6nRRpip79q HWX+o9OWP1qHjQ9FLr2uQzEN5AapsCZaSzT/wSm0j+swMf1sfnxNpxuVWS9f46eePUHX 1dFDtfZDWpWshENvdOg0dy6bkMnIq0jneYeg1UZLwVzQW2sseLSCf+iJ8gTI8UVpBbT8 ZY0Q== X-Gm-Message-State: APjAAAXm5l64CaH2eab3cQm4tf8zAyfzgJgTgpA9GIk2Z017+CaRzd69 JJyF0y4O8obafGtyHkZBc3/qv5bl X-Google-Smtp-Source: APXvYqzaH0/O3OIIfVXdYwUCpmqLqaRbqdVMIpNu9Ju4H7x4S9ZJ5+WUH6x/KpY0h1nDuEFpUytJkg== X-Received: by 2002:a63:9dc3:: with SMTP id i186mr366835pgd.305.1551376854276; Thu, 28 Feb 2019 10:00:54 -0800 (PST) Received: from [192.168.1.6] ([123.201.100.250]) by smtp.gmail.com with ESMTPSA id c3sm30796007pfg.53.2019.02.28.10.00.53 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 10:00:53 -0800 (PST) To: control <at> debbugs.gnu.org From: Bhavin Gandhi <bhavin7392@HIDDEN> Subject: control message for #34268 Message-ID: <519fdd00-5a0a-9a81-40be-e5213ed8570a@HIDDEN> Date: Thu, 28 Feb 2019 23:30:51 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) tags 34268 confirmed
Received: (at control) by debbugs.gnu.org; 28 Feb 2019 18:03:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 28 13:03:30 2019 Received: from localhost ([127.0.0.1]:55506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gzQ1q-0002Fl-CY for submit <at> debbugs.gnu.org; Thu, 28 Feb 2019 13:03:30 -0500 Received: from mail-pl1-f170.google.com ([209.85.214.170]:33176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bhavin7392@HIDDEN>) id 1gzQ1o-0002FX-I9 for control <at> debbugs.gnu.org; Thu, 28 Feb 2019 13:03:29 -0500 Received: by mail-pl1-f170.google.com with SMTP id y10so10141219plp.0 for <control <at> debbugs.gnu.org>; Thu, 28 Feb 2019 10:03:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=plAFlOIoWmnxFYprFoOCcHVl4dvPb/Cn9zhUAwR3byA=; b=IeswfDdh3Tk9ddy699NNLIPR4hLi8JPexG/yUXjq24bdrK7naVW8+//73mAamx8w/2 IwYrtAJf2lCHcNLwyLTzHaD0r6pvcuibUxrEjUxvd7mNz4p/yGsinizLG9KaAiwYtPyv GUnRls8LXOGc5DVb8OeDr61i7tAy7O9Z8S6aLD/4Lr1JNEZ8xu+ag++1xsfY4Q+ujmjM v0GHVeUat8oiXuqbRUHr8ADkEV1X1yTUbT6JP0OJP9rrmuR3Kb7gmWnlyWS9kh+2gm41 D1ZcY//KuKWJooQpBHSKHmVLq+E7MRWfn68zIgHyQTePi+rdoW6YJEeXeuXpR06dJH8m 5f8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=plAFlOIoWmnxFYprFoOCcHVl4dvPb/Cn9zhUAwR3byA=; b=rBgwrfcy1CLVM3a+Qs0iWeofhOjJIyOaZbTQWp7OGj2Cpzl7TdSE3GFn8xP0oNmG5u bkZTQneqO9pL38BuWTSzU6DNAnsDqPEnYCNt+M5qdsoDbCldqDsW7XGUoUH34BU4xHIo 28JynzneCqmZv3SFbprbIxdWi3amQ7uZJ4oktR5vAmNaUCHVJZmJl9LraLTuFhC3fAw/ c9Vzfg98TW2PTdi1qC8n2UQuoSNQsLMFcwDyg7hgIlzX1iI+Y0kEL3m1PFo6xHUR4BS4 FiX4EZLwO+NFsqc5d8NPbtYoC8vNSzk/HrjtyYev+iWfoWTQP4A8icOxVYa+vzXF1WT4 EYuQ== X-Gm-Message-State: APjAAAVebIpdD3l89jVUHa3BAiAzqiBXTknZR/B+G4wbsKyor+kOi8oH YbriyY+sKLxhLGo68i77ch1W+A2F X-Google-Smtp-Source: APXvYqz4+smptRD3/tkI+wBw8fEv2mcOm+wgQZVOnyiKqEdnsPkpW5JWkAUaEmt6Kyax5Xm3qu4++A== X-Received: by 2002:a17:902:e492:: with SMTP id cj18mr620373plb.341.1551377002289; Thu, 28 Feb 2019 10:03:22 -0800 (PST) Received: from [192.168.1.6] ([123.201.100.250]) by smtp.gmail.com with ESMTPSA id k3sm13675218pfc.59.2019.02.28.10.03.21 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 10:03:21 -0800 (PST) To: control <at> debbugs.gnu.org From: Bhavin Gandhi <bhavin7392@HIDDEN> Subject: control message for #34268 Message-ID: <e0760cdf-98ef-b8dc-e272-3c660ef50d49@HIDDEN> Date: Thu, 28 Feb 2019 23:33:20 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) found 34268 26.1
X-Loop: help-debbugs@HIDDEN Subject: bug#34268: Configuration option to fix the issue References: <t16bg67eekczd5.fsf@HIDDEN> In-Reply-To: <t16bg67eekczd5.fsf@HIDDEN> Resent-From: Valentin Ignatev <valentignatev@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 09 Jun 2019 21:24:01 +0000 Resent-Message-ID: <handler.34268.B34268.156011541415757 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: sds@HIDDEN, 34268 <at> debbugs.gnu.org Received: via spool by 34268-submit <at> debbugs.gnu.org id=B34268.156011541415757 (code B ref 34268); Sun, 09 Jun 2019 21:24:01 +0000 Received: (at 34268) by debbugs.gnu.org; 9 Jun 2019 21:23:34 +0000 Received: from localhost ([127.0.0.1]:55492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ha5Hp-000465-Mk for submit <at> debbugs.gnu.org; Sun, 09 Jun 2019 17:23:33 -0400 Received: from mail-io1-f43.google.com ([209.85.166.43]:36083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <valentignatev@HIDDEN>) id 1ha5Ho-00045r-6U for 34268 <at> debbugs.gnu.org; Sun, 09 Jun 2019 17:23:32 -0400 Received: by mail-io1-f43.google.com with SMTP id h6so5390815ioh.3 for <34268 <at> debbugs.gnu.org>; Sun, 09 Jun 2019 14:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bD7E246JPlpBgrjgMKXIljKjyrGXBbvwY0BRGHQ61WE=; b=NMdQvklnjc5LXstclS8Jbi+DO+4KTM5EdVXaoP6OsPMUYLpWwb/3sN+dcFxNgFoEvD cSJTVkr8IiLHEFJm04U9DnXd+QLltp7ZZ+5MjSqtMZSG33ved9a/T0HQ8L00IojK/sSz LrKGaQEZrZQOOBDQeWKbijIx//5cSkRO8bebZLjpggpqbtuh97mxbUYQ1mLeAn0+Kwc7 8ilDJzAgDfAo4f9A86LCVQBw9myrOHmMDnGLVwlQpVGnPmhurHHbBIdlpzmLO0kOLcIc YBLfM3jgDJNFMiAWR6470ILmUG/sXLt4OnmkpNIUcbYy1qcikO2zAfIhT5wXbnJ0HBLJ z3UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bD7E246JPlpBgrjgMKXIljKjyrGXBbvwY0BRGHQ61WE=; b=m60KMHnrj1PEADuM9MhaNQThnpkVV1QZr/TYB1S2zaJFVy1MSQ+k8mfvpdW81nWFsW gm8CsFYtcFus4pj1IXw0V5WLEjun8XAPidH+HLNyfWts0Fv9rlTbEllrWO+hOlIvcgv2 0FVga2ZI2cip4mUqeUj9eLjl4p8fNmYZaC/NZto72pfuy7lMhk+GY8zmPTMsxCEHYYQz 7rdpY0n10aT90T+YZ+SdArYiARSNTSad/9vVpvvX5ZA5b9wt4kGgBUXChCyqHmVB/7KZ Ifz9M5/8NbPJS/QhUVzmj6wPopmBU/uLVj8WGALau+ebEfrLFzTiP+a9LAhbjRfPLe0E EKNw== X-Gm-Message-State: APjAAAX+X7RRZoeF6hKzbxRM5ah5w23cmYo0OeUtKpPK+hoGx/wr1+yk XKpCZL5K+a1IYf/xzfjw582MJOaJbyTXO9HWct3G0U92VAI= X-Google-Smtp-Source: APXvYqxrbw7Hb+/4bGX3/wIldKrBWpuZkxATmi99kcc9SGvCECWi+j9cXoEmmrLrZ1peqByiISGtmc9jvNl49rICpx8= X-Received: by 2002:a5d:8f9a:: with SMTP id l26mr10943249iol.22.1560115406279; Sun, 09 Jun 2019 14:23:26 -0700 (PDT) MIME-Version: 1.0 From: Valentin Ignatev <valentignatev@HIDDEN> Date: Mon, 10 Jun 2019 00:24:28 +0300 Message-ID: <CADXmXkg56TEF=GA0WQ4hdOGPpLv4ia2_8wZziLVtCUgX2atD0g@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000999949058aeaac34" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --000000000000999949058aeaac34 Content-Type: text/plain; charset="UTF-8" Hey Sam, I've looked in the python.el code and it seems that it reuses python-indent-def-block-scale for calculating an indentation. The default value is 2 which is why inside-parens indent doubles. Setting its value to 1 fixes the issue. I also wonder why authors choose double indent for aligning function arguments. Is this some kind of an oldschool code style? :) --000000000000999949058aeaac34 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hey Sam, I've looked in the python.el code and it= seems that it reuses python-indent-def-block-scale for calculating an inde= ntation.<br></div><div><br></div><div>The default value is 2 which is why i= nside-parens indent doubles. Setting its value to 1 fixes the issue.</div><= div><br></div><div>I also wonder why authors choose double indent for align= ing function arguments. Is this some kind of an oldschool code style? :) <b= r></div></div> --000000000000999949058aeaac34--
X-Loop: help-debbugs@HIDDEN Subject: bug#34268: 27.0.50; wrong indentation in python mode Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Sep 2021 21:59:01 +0000 Resent-Message-ID: <handler.34268.B34268.163234788613320 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Valentin Ignatev <valentignatev@HIDDEN> Cc: Augusto Stoffel <arstoffel@HIDDEN>, sds@HIDDEN, 34268 <at> debbugs.gnu.org Received: via spool by 34268-submit <at> debbugs.gnu.org id=B34268.163234788613320 (code B ref 34268); Wed, 22 Sep 2021 21:59:01 +0000 Received: (at 34268) by debbugs.gnu.org; 22 Sep 2021 21:58:06 +0000 Received: from localhost ([127.0.0.1]:52014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mTAFh-0003Sl-Sn for submit <at> debbugs.gnu.org; Wed, 22 Sep 2021 17:58:06 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mTAFg-0003SC-0w for 34268 <at> debbugs.gnu.org; Wed, 22 Sep 2021 17:58:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VLhHuHU+w3QT74wJjUGjwL0lqCB/adIQrL6O6gvQfCM=; b=HSA5bUqFVi0Kv08scfDmpIpFBp pF103KXvgHecO4ivazOdvOcw4o8ziTMuLi+cv0PiCv1LNRZuBoelftxc5/8Lrsm/eOllGa+NKK0GB I2SFc3e4djE8osxIvIH2PhaLhfQH9klrfAosIQ2S3SlqIH66m6hbmnqasLobyXbDUBJU=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mTAFU-0007kW-Vb; Wed, 22 Sep 2021 23:57:56 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <t16bg67eekczd5.fsf@HIDDEN> <CADXmXkg56TEF=GA0WQ4hdOGPpLv4ia2_8wZziLVtCUgX2atD0g@HIDDEN> X-Now-Playing: Was (Not Was)'s _Wheel Me Out_: "Wheel Me Out" Date: Wed, 22 Sep 2021 23:57:52 +0200 In-Reply-To: <CADXmXkg56TEF=GA0WQ4hdOGPpLv4ia2_8wZziLVtCUgX2atD0g@HIDDEN> (Valentin Ignatev's message of "Mon, 10 Jun 2019 00:24:28 +0300") Message-ID: <877df8qnmn.fsf_-_@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Valentin Ignatev <valentignatev@HIDDEN> writes: > Hey Sam, I've looked in the python.el code and it seems that it reuses > python-indent-def-block-scale for calculating an indentation. > > The default value is 2 which is why inside-parens indent do [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Valentin Ignatev <valentignatev@HIDDEN> writes: > Hey Sam, I've looked in the python.el code and it seems that it reuses > python-indent-def-block-scale for calculating an indentation. > > The default value is 2 which is why inside-parens indent doubles. Setting its > value to 1 fixes the issue. > > I also wonder why authors choose double indent for aligning function > arguments. Is this some kind of an oldschool code style? :) (I'm going through old bug reports that unfortunately weren't resolved at the time.) If I understand correctly (and I may well not -- I don't write much python), this is just a preference issue, and setting `python-indent-def-block-scale' to 1 fixes the issue? If that's what's recommended by the standards, should we flip the default to 1? I've added Augusto to the CCs; perhaps he has an opinion here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
Received: (at control) by debbugs.gnu.org; 22 Sep 2021 21:58:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 22 17:58:11 2021 Received: from localhost ([127.0.0.1]:52017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mTAFn-0003T4-3i for submit <at> debbugs.gnu.org; Wed, 22 Sep 2021 17:58:11 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mTAFl-0003Se-Rz for control <at> debbugs.gnu.org; Wed, 22 Sep 2021 17:58:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3OWwfRUfrW16GF6eahziESZ9kEwP9pGDkpxurMgZu+w=; b=hmd3Tzncy2oAyn8/eeHCXfbxkH io6dzqSS2noyC7BEVO2lTK/zpTxOr1J+U9a07MSSIu3c3PD6AkwndtcrePYJzjkfowYWLJvRr8RPh Bi9jvomZDzQ2I3vgV51lldQWkstdcVbhS1jYsR6JAmo2sVu5u5xY/TnYz9oq2C2J7kgg=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mTAFc-0007kd-Jh for control <at> debbugs.gnu.org; Wed, 22 Sep 2021 23:58:04 +0200 Date: Wed, 22 Sep 2021 23:57:59 +0200 Message-Id: <875yusqnmg.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: Lars Ingebrigtsen <larsi@HIDDEN> Subject: control message for bug #34268 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 34268 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) tags 34268 + moreinfo quit
X-Loop: help-debbugs@HIDDEN Subject: bug#34268: 27.0.50; wrong indentation in python mode Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= <andreas.roehler@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Sep 2021 12:38:02 +0000 Resent-Message-ID: <handler.34268.B.163240063412086 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo confirmed To: 34268 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.163240063412086 (code B ref -1); Thu, 23 Sep 2021 12:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Sep 2021 12:37:14 +0000 Received: from localhost ([127.0.0.1]:52915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mTNyU-00038r-H9 for submit <at> debbugs.gnu.org; Thu, 23 Sep 2021 08:37:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:54738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <andreas.roehler@HIDDEN>) id 1mTNyS-00038j-PC for submit <at> debbugs.gnu.org; Thu, 23 Sep 2021 08:37:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <andreas.roehler@HIDDEN>) id 1mTNyP-0001UK-DB for bug-gnu-emacs@HIDDEN; Thu, 23 Sep 2021 08:37:12 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:38565) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <andreas.roehler@HIDDEN>) id 1mTNyN-00038J-KI for bug-gnu-emacs@HIDDEN; Thu, 23 Sep 2021 08:37:08 -0400 Received: from [192.168.178.63] ([94.134.177.121]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N336L-1mqnXQ0G2n-013JYW for <bug-gnu-emacs@HIDDEN>; Thu, 23 Sep 2021 14:37:05 +0200 References: <t16bg67eekczd5.fsf@HIDDEN> <CADXmXkg56TEF=GA0WQ4hdOGPpLv4ia2_8wZziLVtCUgX2atD0g@HIDDEN> <877df8qnmn.fsf_-_@HIDDEN> From: Andreas =?UTF-8?Q?R=C3=B6hler?= <andreas.roehler@HIDDEN> Message-ID: <1d8a3c32-8355-b51e-dbdf-6d3cc17eab44@HIDDEN> Date: Thu, 23 Sep 2021 14:37:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <877df8qnmn.fsf_-_@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Provags-ID: V03:K1:PyImONuMAU5qv3E6siW8M4srqhgg1GcD431MabLug1E2V20brb0 dDv806lr4ImjRtIfkVDsmqy7n8om2WN+DV3CIy91KKPQWHLNExGcazD+QTIEpe6ngce6bSE gadUb7MQSZRS4wsj/f3qwZ5swe02iYeSv9Y10a9UQFNX+FOYdahM2PEp1GTrF4lxtQcBuRt VfQKb1JFBe169HW7V7U2Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:iy4QW4Lw+Zs=:X4fnhKSezBo6BPkP4PqAjE tDYM0OxK6RPqrohzTS9Nl2TES7HoQo5Ce7n+xB1wRcgSA1YzOUDNNgqGSKn/fBA7OzpBti2d1 bpB9MEIIBhvwkCr/0dyQuCiq0smoqb/63BY4as1v07pa+44brxn0PXyb6a8pO6q9ekRicNdNj bxBcbkNhU3hlNQJp3Da/swjJYPWyucqlN6ecD32HJNvwHbsC9iqEhnU8vA0z+wFqVvDy673gP f8qIgWN+K7pGNR015KmEa+zudX+eWR2WR2h+631jwkAXixhMiLhs8XsG9CV8LPom81boiQoFJ aAa4nIb8EJORsH2w8TlMGq7kqGmrtkdWsedkSOcbrs20mvnPa40gD2BvSoM0efZDc8xAjmXld u3nG7B1LWvGQpZM8oRlfS5gPcC10Rt91g8jW4J13cGL5l6J8DiQeW4SLcmIBGOn9FEVomnRV9 yDl3GZQOwvMB/Sjlhku8GuPlzWIGll6VMk9u8GS8SOpabS26NHCtIYZlW1+qRDd+R5iDN3tUE XBpbkZRPttnu7eFJngMqHdf2B87pWvIH8EuNipZLTHxztibGeBdLsGpV2X5xofPpUwOtgM4gn X0FJwFmlDayeI9tTPVTPUUTsDfgsqUjZD5As+7hDqaKFyTUzh1//BZmSIlC+l7Dmda1WiEXML XVMqMbvebD7egjXBotGKj9644d9qqsLdOkkD3OOK921BTQ3PjVPXBAlBDOQSZHO7kUWloN6x7 3gs1lCzuakjvG5dT0tiTgRTrcK00TE0IHmXp2VObulfddr6hCl7fXLSyXAQ= Received-SPF: none client-ip=212.227.126.133; envelope-from=andreas.roehler@HIDDEN; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.4 (---) On 22.09.21 23:57, Lars Ingebrigtsen wrote: > Valentin Ignatev <valentignatev@HIDDEN> writes: > >> Hey Sam, I've looked in the python.el code and it seems that it reuses >> python-indent-def-block-scale for calculating an indentation. >> >> The default value is 2 which is why inside-parens indent doubles. Setting its >> value to 1 fixes the issue. >> >> I also wonder why authors choose double indent for aligning function >> arguments. Is this some kind of an oldschool code style? :) > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) > > If I understand correctly (and I may well not -- I don't write much > python), this is just a preference issue, and setting > `python-indent-def-block-scale' to 1 fixes the issue? > > If that's what's recommended by the standards, should we flip the > default to 1? > > I've added Augusto to the CCs; perhaps he has an opinion here. > py-compute-indentation fromĀ python-mode.el here jumps to the beginning of the list and calculates the indent by adding the default-indent of this line.
X-Loop: help-debbugs@HIDDEN Subject: bug#34268: 27.0.50; wrong indentation in python mode Resent-From: Augusto Stoffel <arstoffel@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Sep 2021 21:09:02 +0000 Resent-Message-ID: <handler.34268.B34268.163243130815895 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo confirmed To: Lars Ingebrigtsen <larsi@HIDDEN> Cc: Valentin Ignatev <valentignatev@HIDDEN>, sds@HIDDEN, 34268 <at> debbugs.gnu.org Received: via spool by 34268-submit <at> debbugs.gnu.org id=B34268.163243130815895 (code B ref 34268); Thu, 23 Sep 2021 21:09:02 +0000 Received: (at 34268) by debbugs.gnu.org; 23 Sep 2021 21:08:28 +0000 Received: from localhost ([127.0.0.1]:56006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mTVxE-00048J-9M for submit <at> debbugs.gnu.org; Thu, 23 Sep 2021 17:08:28 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:41744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <arstoffel@HIDDEN>) id 1mTVxC-000484-Pn for 34268 <at> debbugs.gnu.org; Thu, 23 Sep 2021 17:08:27 -0400 Received: by mail-wr1-f45.google.com with SMTP id w29so20908617wra.8 for <34268 <at> debbugs.gnu.org>; Thu, 23 Sep 2021 14:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Cs+ZfR180w2XlAC/qEbulg5DHuV9fY8uZ/imAt7wccI=; b=gXrQ9JdES5ew/DfOWEYxLfZHUuSmKIQWNiNU5szguOoK/P4bJJDCmo+wzNVz4mzyzn z8vZM58cb/SekNCywLU8W7S7lhH7cPds2QD61vNPASPSVIRQSb/R6T5l0dirUNcwDpH3 92ACAR+tYUp+af1Sh9ff0vDC2bUpea/u5i/iCQuQA2y7eaIPlxrqZgLNpAMlMkp+HD/5 MKtislaxHscpGIv0VPeMO/yAdPV/j+MAJCBmQZiQAP7053mT86YTDc2U1TcX2VAGBbRX iqz51roar4RSicC0fWI3vxREiRRS0WERTQ8OoQCEeMripLyV8NysbkvLNfBittxY/Ofs 50Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Cs+ZfR180w2XlAC/qEbulg5DHuV9fY8uZ/imAt7wccI=; b=aszD6gfblQrzydH9dmZwKljMnxq5FZrzFQr59HrcNC5n9P+nsuirvs/gW51pJCjaZn 4n07u0ZtRiC56JakVtXdbGXc1vODDTT0YiQjcSFF8z+gFhiYyg9iy659BVfQJCFc+ymc n9ALJs/Ru61GcVsEzwySobjoiFfgDgFKKcgzjfjF+1EyTvrT+S7L1NtGNEWTFQ4xzXUJ ielZHaRjmxVotgOkhoxyV0JL5sTHGO5VEMNQKb4s08hz97j43TApgSy7YKmC5VWeQkX/ Gfeis5EFN4hw8o4yXOceAeJLgTi8XHsFvNt51NvXhp8CYpRx/zWm0TzRVYdj07YkIikg 0pBQ== X-Gm-Message-State: AOAM532TmZZac5aROK7jDKpqICvJe1YwU+dY59ku5dqeWUMqvvH/pScS Yyh1Rp8Wdc5ZON551npLVC0= X-Google-Smtp-Source: ABdhPJx3Pv7P3a5THTmwdSwZtTA+jtIwVzdc7eUwjgxN0t7I4tQBc0Bbv2xzixKQuFtMbUO8NFodPw== X-Received: by 2002:a1c:192:: with SMTP id 140mr6541112wmb.186.1632431300792; Thu, 23 Sep 2021 14:08:20 -0700 (PDT) Received: from ars3 ([2a02:8109:8ac0:56d0::2f72]) by smtp.gmail.com with ESMTPSA id t22sm2585000wmj.30.2021.09.23.14.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 14:08:20 -0700 (PDT) From: Augusto Stoffel <arstoffel@HIDDEN> References: <t16bg67eekczd5.fsf@HIDDEN> <CADXmXkg56TEF=GA0WQ4hdOGPpLv4ia2_8wZziLVtCUgX2atD0g@HIDDEN> <877df8qnmn.fsf_-_@HIDDEN> Date: Thu, 23 Sep 2021 23:08:19 +0200 In-Reply-To: <877df8qnmn.fsf_-_@HIDDEN> (Lars Ingebrigtsen's message of "Wed, 22 Sep 2021 23:57:52 +0200") Message-ID: <8735pvhuf0.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Wed, 22 Sep 2021 at 23:57, Lars Ingebrigtsen <larsi@HIDDEN> wrote: > Valentin Ignatev <valentignatev@HIDDEN> writes: > >> Hey Sam, I've looked in the python.el code and it seems that it reuses >> python-indent-def-block-scale for calculating an indentation. >> >> The default value is 2 which is why inside-parens indent doubles. Setting its >> value to 1 fixes the issue. >> >> I also wonder why authors choose double indent for aligning function >> arguments. Is this some kind of an oldschool code style? :) > > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) > > If I understand correctly (and I may well not -- I don't write much > python), this is just a preference issue, and setting > `python-indent-def-block-scale' to 1 fixes the issue? > > If that's what's recommended by the standards, should we flip the > default to 1? > > I've added Augusto to the CCs; perhaps he has an opinion here. I have no idea about what strong opinions other people may have here, but after looking a bit into this I think 1 is probably a better default for `python-indent-def-block-scale'. Here's what I found out: The current default of 2 for `python-indent-def-block-scale' is meant to produce this indentation style ``` def long_function_name( var_one, var_two, var_three, var_four): print(var_one) ``` which is exactly as one can find in PEP-8. Setting it to 1 produces ``` def long_function_name( var_one, var_two, var_three, var_four): print(var_one) ``` which is deemed wrong in that document. However, the above formatting looks quite unfamiliar to me anyway. I usually see one of the following styles: ``` # By far the most common style in the Python source, and, I, think, the # default style of YAPF def long_function_name(var_one, var_two, var_three, var_four): print(var_one) ``` which is insensitive to `python-indent-def-block-scale', or else ``` # Black does that, like it or not def long_function_name( var_one, var_two, var_three, var_four ): print(var_one) ``` in which case a value of 1 for `python-indent-def-block-scale' is the right thing. Finally, the situation mentioned originally in this bug report seems to be a glitch: an indentation rule that makes sense in a "for" statement is being applied where a "for" appears in a list comprehension. It's a rather minor detail, I'd say.
X-Loop: help-debbugs@HIDDEN Subject: bug#34268: 27.0.50; wrong indentation in python mode Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Sep 2021 22:02:02 +0000 Resent-Message-ID: <handler.34268.B34268.163243447610185 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo confirmed To: Augusto Stoffel <arstoffel@HIDDEN> Cc: Valentin Ignatev <valentignatev@HIDDEN>, sds@HIDDEN, 34268 <at> debbugs.gnu.org Received: via spool by 34268-submit <at> debbugs.gnu.org id=B34268.163243447610185 (code B ref 34268); Thu, 23 Sep 2021 22:02:02 +0000 Received: (at 34268) by debbugs.gnu.org; 23 Sep 2021 22:01:16 +0000 Received: from localhost ([127.0.0.1]:56158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mTWmK-0002dy-0V for submit <at> debbugs.gnu.org; Thu, 23 Sep 2021 18:01:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mTWmI-0002Yf-Jg for 34268 <at> debbugs.gnu.org; Thu, 23 Sep 2021 18:01:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Nel8TNFZAhjftSek45XVuudWLPURy+NZ5UtGXKcOicE=; b=NDaDaU5cCPy2Y0GXeYvPHMURBn tA+9rTODiPlw1ddBIiXolCUcxAJH7DWYinIu0u3+BPTmq69EaKtc2fL3UyPKzZ6ov1EHuNeODI+fR HBZhmbjt/Yp9B1aYO4ZaBDHtNxzQjWeg22dRDIUhQtoSHMOjeBACwN43NJUbDsq/GQGM=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mTWm7-0007fh-T5; Fri, 24 Sep 2021 00:01:07 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <t16bg67eekczd5.fsf@HIDDEN> <CADXmXkg56TEF=GA0WQ4hdOGPpLv4ia2_8wZziLVtCUgX2atD0g@HIDDEN> <877df8qnmn.fsf_-_@HIDDEN> <8735pvhuf0.fsf@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEW4oGLo4LhfSi7/ ///dCHUJAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UJFxU6NFRzZpEAAAGzSURBVCjPNdDBitswEAbg UYgX45OzSEvZUzaUYusp7GBD6pMVNKHklJQutHmKpCSXnFrILqUnOySgzFN2pO765I/5NRoNiCJJ E4GrB4UIsZmeUkR7QgbE0z2UxkpfEX+q3Wdt7IvCGoocYaY5V3NlnA9d4xAXgrHWWp9chGbEyMa0 eaUDtr6bnjg6d3zGYwPF8fLCf77BantPJf7/wAxkkr6jLOJp6i/BygJ7CZCzrAXpETsVukmTzkHT QfnKKi1sP6Abx+5Ao7Hiq0d1hka1Mv6urxUuhjCzrXzUug+xFm3UZh44BKvm/QCSK4MvrdsM+uWF kfIEuIGnpjM+xpjtnpveYORjXF433V4JFRD/aIgOM+VjOHUDcuIbAhostcuIRD3ylTKjPKGJEh42 pz4hWT+HM2u6JMdtXYLfWPXYpUS/uQHOVX13vic6+YUUI/z48+i09LBKtoO/7tjX4UzdxgfaPrWM xesau+utHIeYvJp558rMA9UIC/pQxGHQqMCZ3lXbyGP4gMvzrerCBKrBLx7SV34V2J6dFQGWl64z CXVAhJbyFCA8gTGh/Rt4xZ90lIp/x1KvKUgs+CYAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDkt MjNUMjE6NTg6NTIrMDA6MDC5BFUJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA5LTIzVDIxOjU4 OjUyKzAwOjAwyFnttQAAAABJRU5ErkJggg== X-Now-Playing: Mike Rutherford's _Smallcreep's Day_: "Romani" Date: Fri, 24 Sep 2021 00:01:03 +0200 In-Reply-To: <8735pvhuf0.fsf@HIDDEN> (Augusto Stoffel's message of "Thu, 23 Sep 2021 23:08:19 +0200") Message-ID: <87pmszuf34.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Augusto Stoffel <arstoffel@HIDDEN> writes: > I have no idea about what strong opinions other people may have here, > but after looking a bit into this I think 1 is probably a better default > for `python-indent-def-block-scale'. Here's what I [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Augusto Stoffel <arstoffel@HIDDEN> writes: > I have no idea about what strong opinions other people may have here, > but after looking a bit into this I think 1 is probably a better default > for `python-indent-def-block-scale'. Here's what I found out: > > The current default of 2 for `python-indent-def-block-scale' is meant to > produce this indentation style > > ``` > def long_function_name( > var_one, var_two, var_three, > var_four): > print(var_one) > ``` > > which is exactly as one can find in PEP-8. Setting it to 1 produces > > ``` > def long_function_name( > var_one, var_two, var_three, > var_four): > print(var_one) > ``` > > which is deemed wrong in that document. So it sounds like we need a different solution than just altering block-scale, because it'd be nice if that continued to work, even if: > However, the above formatting looks quite unfamiliar to me anyway. I > usually see one of the following styles: > > ``` > # By far the most common style in the Python source, and, I, think, the > # default style of YAPF > def long_function_name(var_one, var_two, var_three, > var_four): > print(var_one) > ``` Yeah, that looks more normal. > Finally, the situation mentioned originally in this bug report seems to > be a glitch: an indentation rule that makes sense in a "for" statement > is being applied where a "for" appears in a list comprehension. It's a > rather minor detail, I'd say. Right. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
Received: (at control) by debbugs.gnu.org; 24 Oct 2021 19:31:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 24 15:31:31 2021 Received: from localhost ([127.0.0.1]:40993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mejDP-0000B4-59 for submit <at> debbugs.gnu.org; Sun, 24 Oct 2021 15:31:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mejDO-0000Ar-56 for control <at> debbugs.gnu.org; Sun, 24 Oct 2021 15:31:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=e93lQ9Q/ju6ea+m1HaW4HERyDgwPsWjGMkoIT+O+Q5I=; b=MX0eqkfrtuM7bACfP8eDarlT0A n9dexV3vHn0payjC/8M8aTmMmePY9/a186E+Y0Gx/WGoI3oUdikU1o8BNbtOqWWIY1rueH368cWij ot8OF8rDp7z9M+bNWirar0VlNZNAS8pq9O/4I/BBcjUmZVkLrf/OQ/4uUMgpJV8psa5U=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mejDG-0001v5-BT for control <at> debbugs.gnu.org; Sun, 24 Oct 2021 21:31:24 +0200 Date: Sun, 24 Oct 2021 21:31:21 +0200 Message-Id: <87k0i22p9y.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: Lars Ingebrigtsen <larsi@HIDDEN> Subject: control message for bug #34268 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 34268 - moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) tags 34268 - moreinfo quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.