Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Why not allow empty code blocks? Date: Sun, 24 Jul 2016 23:24:57 +1000 Lines: 16 Message-ID: References: <5792cd34$0$1587$c3e8da3$5496439d@news.astraweb.com> <87vazwppxx.fsf@elektro.pacujo.net> <20160723082947.7cae8bd1@imp> <87fur0a44p.fsf@elektro.pacujo.net> <20160723095441.29562c54@imp> <57939373$0$1586$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de cAlhJ1IsmZEF2i6Xyfn1HQVCefw1r57nAulXois9puFg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:code': 0.07; 'width': 0.07; 'cc:addr:python-list': 0.09; "'return": 0.09; 'subject:Why': 0.09; 'tab': 0.09; 'subject:not': 0.11; '11:09': 0.16; '2016': 0.16; '24,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'is).': 0.16; 'mistake.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:allow': 0.16; 'tabs': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'wrote': 0.23; 'header:In-Reply-To:1': 0.24; 'example': 0.26; 'message-id:@mail.gmail.com': 0.27; 'actual': 0.28; 'spaces': 0.29; 'certainly': 0.30; "can't": 0.32; 'posting': 0.32; 'equal': 0.34; 'except': 0.34; 'that,': 0.34; 'received:google.com': 0.35; 'mix': 0.35; 'but': 0.36; 'too': 0.36; '(and': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'doing': 0.38; 'no,': 0.38; 'wrong': 0.38; 'where': 0.40; 'jul': 0.72; 'chrisa': 0.84; 'ever.': 0.84; 'you.)': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=7haR1Fqb3aTgqj2ZkHLyn6pn8KcaEALORJVsBkTp5ng=; b=Go5MJXBR04Ml0/inWN1mKtQO70RU7bant0Po/V838Q0MQ+JU5yWH2UZzIbj6k9UL7/ ISuiFpldADEQAjGItBOomW3LD+YzG59DLUyYB/SUCZJMDyCTu/5a7mrUDZE/+jEYRP2G CUj6R9Rb4iFOwgrgovT4RxsfhG+oYGML704dFtwnlHmxM8Y276aeoPT7mZEua6lEEkKx JvzAsz/tas3OzRvbh2aA/FhKgtdO5udcXyu5378RpYJBfiPik/1AIzlAF2CZEZFx1G3h wYQM7YCAMhcYtUdQTz6xwNeZOmKMNfHyg5gtTKzleqLWolEWxfZzHSxUQBsxlA0Fsrki TrBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=7haR1Fqb3aTgqj2ZkHLyn6pn8KcaEALORJVsBkTp5ng=; b=flUrwOfDGEbNIuaxfA9GHkEjxlPgXjCsJYwFMdvpzjA4icFtu6KmVKvdU9W0AZPyY+ ka/LwKsRfv64F9ua5kglfC0751btFHJwatJHfzEKaMj5lnoiJVzCGr0BL1vvKv8jEJHz NWbapUDFBuQ6CBpjAZzJv32XZ5e1RtYnJ2Qp7HTt48RPGUpa98vH8/9oj8ULcZem/pJi Af1zeFA3vEz5ThfygYsE7BbmvPvL6GX/82bX/MQEK3fKnCz0Ola+efXIaFh/xg69lHAW kJ5TGDuqzBofQ5o6bkAkO7Vz1NbAXEoOHmLohcGRS24b03NFvA3DUfDIviiPKBhBLPAd Lm+A== X-Gm-Message-State: AEkoousW3fFTRa6OHTfM/pA7uvq5v1EpSgBT+auhVovL17+0O7duVrSv3q4MfWl2Ue02B5KNj6/4SM5Sk4gERw== X-Received: by 10.194.175.38 with SMTP id bx6mr11713306wjc.47.1469366698864; Sun, 24 Jul 2016 06:24:58 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 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: X-Mailman-Original-References: <5792cd34$0$1587$c3e8da3$5496439d@news.astraweb.com> <87vazwppxx.fsf@elektro.pacujo.net> <20160723082947.7cae8bd1@imp> <87fur0a44p.fsf@elektro.pacujo.net> <20160723095441.29562c54@imp> <57939373$0$1586$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:111807 On Sun, Jul 24, 2016 at 11:09 PM, BartC wrote: > Actually this is a good example of how tabs can go wrong (and how the tab > system /is/ fragile - sorry but it is). > > I almost certainly wrote the above using 4 and 8 spaces for the tabs, except > for the 'return 1' where I must have used an actual tab by mistake. (And I > tested it now by doing just that, and posting in alt.test.) > No, it's an example of how *mixing tabs and spaces* can go wrong. And in fact will always go wrong unless you legislate the width of a tab. (Recommendation: A tab is equal to 3.14159 spaces. Now you can't get confused. Use 6.283 spaces if that's too narrow for you.) So don't mix tabs and spaces. Ever. ChrisA