Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Stephen Hansen Newsgroups: comp.lang.python Subject: Re: pylint woes Date: Sat, 07 May 2016 20:55:22 -0700 Lines: 18 Message-ID: References: <1462679722.792380.601237649.3175E2FD@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de xP0JtTMoNaBA4JqQuB6THw6ov88r2vrFVMvkjWro640g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:internal': 0.09; '(var': 0.16; 'dfs': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 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; 'statments': 0.16; 'wrote:': 0.16; 'case.': 0.18; 'skip:+ 40': 0.18; 'stephen': 0.22; 'sat,': 0.23; 'examples': 0.24; 'header:In- Reply-To:1': 0.24; 'that.': 0.30; 'especially': 0.32; 'comment': 0.35; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'choose': 0.68; 'skip:| 10': 0.84; 'surround': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ixokai.io; 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=T2Rb2fiIYuUDKFs+u7RO2f7K1tI=; b=OLpD4s 1/MCfQmZ1JCJ1q+LjgyOAikmnSw+6CjTnBQ8GirZK1KBVKkvOZ06C4KRBHLZtJxC 6dfE56MeF4wyxNOlS/w2/VBb/pKA2/YIS4nAyCwo0m4nT+JPgS2rPHoEXxhSenAP D7h2yK9kCxiOp0q1Z/aP2cUeRy8gpWd5t1zvk= 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=T2Rb2fiIYuUDKFs +u7RO2f7K1tI=; b=mGgIy9U3gfE2tkeSoQMxfxa5kLjJyQoNwI/FzpqFZQdVlKb QZ3aEX7ziF+R+jH3rLI8E9mdVv9WrJoh1KpsRypHX3PNhGYMmhQCngmbY6fhOr3I u2pluOpp2h4rQ4TnHBJUbS5G94YxrGiyvv17LBwdsf3LVbkRCYOzENC4dcCQ= X-Sasl-Enc: KIp5hUoSEb3Lw66IOrg4D8ZEqDHk6CH5i3np2bf63iL6 1462679722 X-Mailer: MessagingEngine.com Webmail Interface - ajax-140377c4 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: <1462679722.792380.601237649.3175E2FD@webmail.messagingengine.com> X-Mailman-Original-References: Xref: csiph.com comp.lang.python:108333 On Sat, May 7, 2016, at 08:28 PM, DFS wrote: > >> +-------------------------+------------+ > >> |superfluous-parens |3 | I like to surround 'or' > >> statments with parens > > > > I would need examples to comment > > > if ("Please choose a state" in str(matches)): > if (var == "val" or var2 == "val2"): Gah, don't do that. You're adding meaningless noise. Especially in the first case. -- Stephen Hansen m e @ i x o k a i . i o