Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Guido sees the light: PEP 8 updated Date: Tue, 19 Apr 2016 00:11:03 -0400 Lines: 32 Message-ID: References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <87shym6kpo.fsf@elektro.pacujo.net> <87h9f26ioa.fsf@elektro.pacujo.net> <1460809922.1918014.580580553.0AE05EE4@webmail.messagingengine.com> <878u0d7az5.fsf@elektro.pacujo.net> <93639142-6b82-4b8a-8bd0-7f4593e1f692@googlegroups.com> <1461036589.1221872.582808913.08A50F70@webmail.messagingengine.com> <8b3aa2c6-4314-446a-a894-fe61451a373a@googlegroups.com> <1461039063.1234620.582832393.7B6F72B6@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 3eumbEPkfW0TTAmAh1cdSgj/ADC16s1dpgfB3Qn3y1dQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:PEP': 0.07; '"if': 0.09; 'assumed': 0.09; 'received:internal': 0.09; 'tab': 0.09; "(it's": 0.16; 'foo"': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'tabs': 0.16; 'wrote:': 0.16; 'saying': 0.22; 'aligned': 0.22; 'code.': 0.23; 'this:': 0.23; 'second': 0.24; 'header:In- Reply-To:1': 0.24; 'mon,': 0.24; 'extending': 0.29; 'comments': 0.30; 'code': 0.30; 'putting': 0.30; 'guess': 0.31; 'point': 0.33; 'add': 0.34; 'something': 0.35; 'comment': 0.35; 'but': 0.36; 'too': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'two': 0.37; 'received:66': 0.38; 'subject:the': 0.39; 'enough': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'leading': 0.61; 'header :Message-Id:1': 0.61; 'more': 0.63; 'sample': 0.63; 'levels': 0.70 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=c1Chp7vRtgtuW73nJCP65EhHqaw=; b=Bp61jj +JtkfghJD66iJ9BzdlGhyqpR4FkMslVqEDXlry2SnUsMbey8h9e8o4KGsLT/2QWq DonjKGHT8zlSAA++qkeGQcGiUd+/8ndJzltHUHgtixBS4pjkXzw62FyPy4VCagwn jX+X8Lih0GxR353dgWi3BtZ3a7JlrG+qMBpsc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=c1Chp7vRtgtuW73 nJCP65EhHqaw=; b=RvsSLT+TvBP4y9EZXXWdtQGiTWQltPe45cmml33i5xGJIIi /OE6XhfLe/DJYY2Dpu3LvKFzKXX8hA7qONcqaqdRXIEvMXpenxCyhOf9haw/QLcv J+Q791mWvucL/nGuBJSfTrU+b/R4SFgOQo2Az2yjQB1PddWzgmZgdgbHEMgs= X-Sasl-Enc: C6114yH3maI+VisJ++04sVb3uicibcH8MQ31HinEOSHF 1461039063 X-Mailer: MessagingEngine.com Webmail Interface - ajax-9b739787 In-Reply-To: <8b3aa2c6-4314-446a-a894-fe61451a373a@googlegroups.com> 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: , X-Mailman-Original-Message-ID: <1461039063.1234620.582832393.7B6F72B6@webmail.messagingengine.com> X-Mailman-Original-References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <87shym6kpo.fsf@elektro.pacujo.net> <87h9f26ioa.fsf@elektro.pacujo.net> <1460809922.1918014.580580553.0AE05EE4@webmail.messagingengine.com> <878u0d7az5.fsf@elektro.pacujo.net> <93639142-6b82-4b8a-8bd0-7f4593e1f692@googlegroups.com> <1461036589.1221872.582808913.08A50F70@webmail.messagingengine.com> <8b3aa2c6-4314-446a-a894-fe61451a373a@googlegroups.com> Xref: csiph.com comp.lang.python:107291 On Mon, Apr 18, 2016, at 23:54, Rustom Mody wrote: > Start no tabs: > if foo# comment that is aligned > do some stuff# across multiple indent levels > > Add tabs as leading indents with second line indented 1 tab more > (showing tabs as |) > |if foo# comment that is aligned > ||do some stuff# across multiple indent levels > > Indent the first comment with 2 tabs > At this point the first comment is/shows lefter than the second > > Indent the second with 1 tab -- the two #es now line up Yeah but now the second line of code is to the right of the whole first line of code. "if foo" must have been too short to illustrate it (it's long enough if a tab is four spaces, but I guess it's longer in the sample), but I assumed you would get the concept of what I was saying and try putting something longer there or try extending the comments in the C code the sample preloads. Like, it ends up looking like this: if foo("what if it's a much longer condition"): # comment do something # comment2 There's no way to get this: if foo("what if it's a much longer condition"): # comment do something # comment2