Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.06; 'employer,': 0.07; 'differently.': 0.09; 'spaces': 0.09; 'style.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'braces': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nightmare': 0.16; 'tabs': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code,': 0.22; 'cc:addr:python.org': 0.22; '(or': 0.24; 'cc:2**0': 0.24; 'define': 0.26; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'am,': 0.29; 'matching': 0.30; 'message-id:@mail.gmail.com': 0.30; 'indentation': 0.31; 'languages': 0.32; 'option': 0.32; 'run': 0.32; 'fri,': 0.33; 'programmers': 0.33; 'problem': 0.35; 'subject: (': 0.35; 'editor': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'subject:New': 0.37; 'so,': 0.37; 'requiring': 0.38; 'handle': 0.38; 'environment.': 0.39; 'structure': 0.39; 'simply': 0.61; "you're": 0.61; 'real': 0.63; 'different': 0.65; 'physical': 0.72; '2015': 0.84; 'bloody': 0.84; "employees'": 0.84; 'adopt': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=k8kosYypKNwnXBCk0Zp53BOKJCob2Mgg3uWx6vFnPc0=; b=JXaQ09cFnr6DYlxj1KkpmBtwIxTYoUA6s59Lba3zauNjV3LYwwfseWxRNlRGJtB1l1 hzZLV/86DlIhlddk0lupdt/GoGGvRyY4hfq51qxYgHIQtepNqzws3exPVYNcQ4sVArTt NYt2pNBVOw27XC9oKhOGLIUX0OcHBpm4KgqFglE9lF3xKMtLm6iKDmDhWpQ/mjuuHQod bByvtXs8osKoksPdkvPWGm3TA3jMIGdSoOwvlF/KDM5ih7Su1MHmIruX+hMA7Wm5NIV6 kZL5GWncqU6+7ouSURwLz0jSiNUfQRX04WibExVuaSAEW07S6SZdYDv8D6yfnZ8QIz50 XIqw== MIME-Version: 1.0 X-Received: by 10.42.227.198 with SMTP id jb6mr17894489icb.12.1429196631990; Thu, 16 Apr 2015 08:03:51 -0700 (PDT) In-Reply-To: <6580b5d5-92f5-4bfa-b1d0-889c69fe82bb@googlegroups.com> References: <9fc57fc9-0399-4ff3-882a-d041f02827d8@googlegroups.com> <6580b5d5-92f5-4bfa-b1d0-889c69fe82bb@googlegroups.com> Date: Fri, 17 Apr 2015 01:03:51 +1000 Subject: Re: New to Python - block grouping (spaces) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1429197045 news.xs4all.nl 2935 [2001:888:2000:d::a6]:55168 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89036 On Fri, Apr 17, 2015 at 12:52 AM, Blake McBride wrote= : > 2. Having been an employer, it is difficult to force programmers to use = any particular editor or style. Different editors handle tabs and spaces d= ifferently. This is all a bloody nightmare with Python. > > 3. Languages that use braces (or the like) can be run through a program = beautifier to correct the indentation. You are just screwed in Python. So= , Python may be a cute language for you to use as an individual, but it is = unwieldy in a real development environment. > If you're prepared to run a beautifier on your employees' code, you should have no problem requiring that they adopt a syntactically-legal style. You're already throwing away any option of indentation not matching the physical structure of the code, so why not simply have the indentation define the physical structure? ChrisA