Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'exception': 0.03; 'warnings': 0.03; '"if': 0.09; 'oh,': 0.09; 'yeah,': 0.09; '(like': 0.15; 'applies': 0.15; 'fiddle': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'macro': 0.16; 'non-callable': 0.16; 'reasonable.': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'jan': 0.18; 'module': 0.19; 'fairly': 0.21; 'disable': 0.22; 'names.': 0.22; 'header:In-Reply- To:1': 0.25; 'am,': 0.27; 'guess': 0.27; 'functions.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'options': 0.27; "doesn't": 0.28; 'chris': 0.28; 'about.': 0.29; 'complain': 0.29; 'enforce': 0.29; 'implies': 0.29; 'style.': 0.29; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'tool': 0.36; 'but': 0.36; 'too': 0.36; 'author': 0.37; 'does': 0.37; 'level': 0.37; 'received:209': 0.37; 'well.': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'end': 0.40; 'most': 0.61; 'subject:, ': 0.61; 'subject:...': 0.63; 'more': 0.63; 'business.': 0.82; '2013': 0.84; 'why?': 0.84; 'subject:very': 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:to :content-type; bh=fPKZ2r5L+qrOx3IKggooUSs9bxm/osdSFIEKPRkjzJQ=; b=IGSrFjZbZpYQjRTOsZMOWZLjiIvyDAriKnj5m6onAUO9fzFSAwtNRZpi7puQVai1wT FcxrwPceszhSM5thzcVbn6ZniouNsUNeXlDdKRwYPY/U59+ZM5Sl8DESaq5A4EYM3x1n e7ZPUELTDKpMwAHs0s5peTB1UVG7ltIjRIpgn+AqaynzANMHuEYxeEOVIgahYfWlmS16 4dSnePhN0pK9PTWCGR6DMFuAGRei0gVShc5EEbXbnOe/pc9kfKa6fgke8JQzvj1LKu7K sZVikCPzLd/ywH68C7gIC1U4McIY66YLYQM68CQT0bT72xWKohysdMBmSLCsrmoW7xnB PQew== MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 3 Jan 2013 04:57:12 +1100 Subject: Re: pylint, was Re: pygame - importing GL - very bad... From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357149434 news.xs4all.nl 6876 [2001:888:2000:d::a6]:41008 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36002 On Thu, Jan 3, 2013 at 4:52 AM, Ian Kelly wrote: > On Wed, Jan 2, 2013 at 7:32 AM, Chris Angelico wrote: >> Okay, I have to ask... why? Does it have an exception for names of classes? > > Yes, and for module-level functions. Oh, okay. So the check's a lot more specific than the message implies - it applies only to non-callable module level names. I guess that's reasonable. >> I don't like linters that enforce too much style. Catch things that >> might be mis-coded (like C's classic "if (x = 1)"), but don't complain >> about my names. They're MY business. > > pylint is configurable though, so you can disable any warnings you > don't care about. My pylint macro has a fairly large number of -d > options in it. Yeah, same applies to most linters I think. You end up disagreeing with the author on half the points. Oh well. Doesn't make the tool useless, just means you need to fiddle with it to get it how you want it. ChrisA