Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: pylint woes Date: Sun, 8 May 2016 13:56:59 +1000 Lines: 13 Message-ID: References: <572E3967.9060206@icloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de JRp3cTqmwzh5AOCcFfAmSA6vUtvqcxDjVdy1j2GeRglw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'assigning': 0.09; 'broken.': 0.09; 'python': 0.10; 'itself.': 0.11; 'index': 0.13; '2016': 0.16; 'allocates': 0.16; 'dfs': 0.16; 'did,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'throwaway': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'variable': 0.18; '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; 'concern': 0.29; 'code': 0.30; 'received:google.com': 0.35; 'behind': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'care': 0.60; 'your': 0.60; 'matter.': 0.66; 'walk': 0.72; 'yourself': 0.73; 'chrisa': 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=4cxuzdkiQZ7mbD2+ISaC/17xN+nmxBGQzfBzEt1iDFg=; b=BPXY4e++UJW9nNtC2RmW9sGptedmzOK54aF3biTUZASRHSnFsT/ZaZT6SaVkJblH7R tlV1sDI678iypA5pRW7YiNumAGMLYrlD+mL+g5nzyOBCuTc0bet4fVxrujzN5SPi6cIm GqNw9TxQLWE0M/o1jkchetna/AifY37qn9bAPAiYnONllyL/2BI4xWUNFJyVeu1yll1q LjJ/YRoNIJOUfa6x4ej9xknz5ZB/ClFm2WMB/SA7SB22TKJUlIThBPVcI/D6NMcvJYiM jp+4oo2nY1BhDSdVM4VdaRZ2BsOalu1SqtLijYmzfMM+yemle8ZzgYRfwJOTcI02a7Br BxXg== 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=4cxuzdkiQZ7mbD2+ISaC/17xN+nmxBGQzfBzEt1iDFg=; b=KM2f/0u4dA7JXEwywTr+44p0qTAw5b/08ZFSkp92INuRzak2R6zkiFDlpU1Y/80Nos QIY4+uYUELJUx0FgYXAOxibcfl6hNmzARIaHm2dBer+W+t9cdTXAz/bKPirooYsNwm8c Sc6zvcGF02nMhkuwZbFawWGarT0TP2HQwoDnAjCjHUtr9gqQ/jxCl2SwrPkddx/LExLb VRyC2x1NShoFl9XMFcz/CRqYadiMRThmal9xiOVAEuHUCSlOVu4Ui8tEbobtcDWfHgrS Hc6DbYUk//Nw19JYW01LAJKMaAyy7CL7pNLbKnnd3uYLbcQCSPg+znZRWwJNXBRYjIx1 cLww== X-Gm-Message-State: AOPr4FU7WIv2BmSNgCcZbCz4xl7IrohOmrOTQQ6KrmpJBY0/VvzNrEylapInhzULM/cnZPOV2Wo8SqFMC1Ustw== X-Received: by 10.112.95.20 with SMTP id dg20mr12359274lbb.58.1462679819663; Sat, 07 May 2016 20:56:59 -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: <572E3967.9060206@icloud.com> Xref: csiph.com comp.lang.python:108334 On Sun, May 8, 2016 at 1:38 PM, DFS wrote: >> This code is reeking with bad habits to be broken. Assigning a throwaway >> variable to walk the index is unnecessary when Python can do it for you >> behind the scenes. > > > Don't you think python also allocates a throwaway variable for use with zip > and enumerate()? Nope. But even if it did, it wouldn't matter. Concern yourself with your code, and let the implementation take care of itself. ChrisA