Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Continuing indentation Date: Thu, 3 Mar 2016 13:33:03 +1100 Lines: 12 Message-ID: References: <0b33c10d-4366-49c7-8416-4d4ecd56ac8b@googlegroups.com> <56d79fcc$0$22141$c3e8da3$5496439d@news.astraweb.com> <85si08ths0.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de FIcMDk/Zi7Uw9+00L2IT6gFktaDvtHee/x8EIxfsDrSg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'broken': 0.03; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'wastes': 0.09; 'thu,': 0.15; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'code.': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'function': 0.28; 'mind,': 0.29; 'safely': 0.33; 'received:google.com': 0.35; "isn't": 0.35; 'too': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'smaller': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'easily': 0.39; 'your': 0.60; 'mar': 0.65; 'chrisa': 0.84; 'descriptive': 0.84; 'unique.': 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:date:message-id:subject:from:cc; bh=GA8X3Sz0368NRYc12jFg87xp4IcgvAirZR/8eu+JYBQ=; b=qWQ80Ww5UVdx6/Kvh+IUL+hvn7p06v9nLGqVaznVQJfw0C33jfviiMIWGixF9iyY2P eZxpxw9Ok0HKWn6ab0QXFDoAXJYUQz1FNgRJOFYmwbSOFGa6/ADZ66/+bX12521U1ka6 XPNJUJ6PbGLH+i350t0lWf3EZ/vwg9jNa1/lDuKKtedrCPpoZ1kIrlIZMdRY1DJh8Qyu ix2JOCj6o/CpojXIfUIdhqctEGYjNvQIQsaKQ+n4cJ5Vs/VK4ZnxKopCI0QwRqD6jEis aRgAw5ULlK4EU4zSmea2iZ4J5hju1HDXulUPpxnZ9J9/Ba24CFlKBx/M7AjfEg1MtBFu NnBA== 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:date :message-id:subject:from:cc; bh=GA8X3Sz0368NRYc12jFg87xp4IcgvAirZR/8eu+JYBQ=; b=Yy4n+DuRqZpKtUbC9V1H148x+tPk5ClpivRbbCCAqQiIDaTeHWZLx5SYIbtQpClxgd 1+X+9bTHO6MnGPxIR6QESZpmXq5AwJet46PSYfa48IfxV2btmp+mAJjcYulR1vKX3zHd 78MGZG0rL8yad/7MvqcARqQs0wfdAUovHqzsXO0G5F2aNMA2sIVQXooP3i1P7KHNW5YR yes+J8WYC4wKfUzeIqcaIUsAfooZVleYzt9sqzpXlaFxuwPMgOgL52i8rY69sde67BsD h8ZeExUsB4i+Lz5AEb6BIi0Mbcr4VNw4N86aWDyF7pWdas5qMjabpOBfEPFo8XqVRq6N 9M+g== X-Gm-Message-State: AD7BkJIc4MHe+yC3KHtoW3WAFbnpLkLd0ha7qZ93tNonehuHl3mizUJ9LvEH/jJ4jOuwxrp7d/V09ZzsGMxsbg== X-Received: by 10.107.47.163 with SMTP id v35mr560060iov.19.1456972383725; Wed, 02 Mar 2016 18:33:03 -0800 (PST) In-Reply-To: <85si08ths0.fsf@benfinney.id.au> 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:103928 On Thu, Mar 3, 2016 at 1:30 PM, Ben Finney wrote: > If your functions are so long that you fear using a specific name will > deter you from using it again *in the same scope*, then the name isn't > descriptive and a better one should be chosen, or the function is too > large and should be broken into smaller pieces. It's not just name collisions. You should be able to keep in your head every local name in a section of code. Giving a name to a single-use expression wastes one of those precious slots in your mind, even if it's easily and safely unique. ChrisA