Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ethan Furman Newsgroups: comp.lang.python Subject: Re: Continuing indentation Date: Wed, 02 Mar 2016 14:56:46 -0800 Lines: 18 Message-ID: References: <8760x4bo5h.fsf@elektro.pacujo.net> <871t7sbkex.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de vim5rkUm2odFfJOX7tbuYgpzNyIAyzOmfnp5suBhprBw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; '(so': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'python': 0.10; 'rationale': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'skip': 0.18; 'language': 0.19; 'seems': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; '(which': 0.26; 'helpful.': 0.29; 'indentation': 0.29; 'spaces': 0.29; '~ethan~': 0.29; 'continuing': 0.32; 'maybe': 0.33; 'message.': 0.33; 'common': 0.33; 'exhibit': 0.33; 'similar': 0.33; 'know.': 0.34; 'but': 0.36; 'lines': 0.36; 'mode': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'version': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'behavior': 0.61; 'body': 0.61; 'back': 0.62; 'charset:windows-1252': 0.62; 'different': 0.63; 'practice.': 0.66; 'levels': 0.70; 'eight': 0.72; 'conditions,': 0.84; 'default?': 0.84 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103912 On 03/02/2016 02:44 PM, Skip Montanaro wrote: > I don't know. Maybe I need to ask the flake8 author about his > rationale for this message. It seems to me from my experience with the > language that this particular message is going against pretty common > practice. Does vim's Python mode exhibit similar behavior by default? > What about other editors/IDEs? My vim mode indents an extra four spaces when continuing lines (so eight total), and dedents back four after the ): (which does line up with the extra-indented conditions, but with the original condition). I find the different indentation levels for conditions version body to be very helpful. -- ~Ethan~