Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-2.ams.xsnews.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'skip:[ 20': 0.03; '*not*': 0.07; 'suppose': 0.07; 'url:blog': 0.09; 'python': 0.09; 'pep': 0.09; 'terry': 0.09; 'underscore': 0.09; 'properly': 0.15; 'value.': 0.15; '"invalid': 0.16; '(should': 0.16; 'boolean': 0.16; 'improper': 0.16; 'name"': 0.16; 'naming': 0.16; 'needless': 0.16; 'pep8': 0.16; 'reedy': 0.16; 'situation.': 0.16; 'tool.': 0.16; 'wrote:': 0.17; 'saying': 0.18; 'variable': 0.20; 'tells': 0.22; 'seems': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'creating': 0.26; 'mike': 0.27; 'separate': 0.27; 'convention': 0.27; "doesn't": 0.28; 'words': 0.29; 'related': 0.30; 'error': 0.30; 'sense': 0.31; '(and': 0.32; 'like:': 0.33; 'to:addr:python-list': 0.33; 'recommended': 0.33; 'clear': 0.35; 'community': 0.35; 'pm,': 0.35; 'something': 0.35; 'skip:_ 40': 0.35; 'but': 0.36; 'should': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'little': 0.39; 'skip:" 10': 0.40; 'received:192.168': 0.40; 'subject:, ': 0.61; 'subject:...': 0.63; 'more': 0.63; 'making': 0.64; 'middle': 0.66; 'header:Reply-To:1': 0.68; 'capital': 0.68; 'reply-to:no real name:2**0': 0.72; 'checker': 0.84; 'received:192.168.15': 0.84; 'received:98.158': 0.84; 'subject:very': 0.91; 'choice.': 0.93 Date: Thu, 03 Jan 2013 09:19:19 -0500 From: "Mike C. Fletcher" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: pylint, was Re: pygame - importing GL - very bad... References: <50e4c83b$0$30003$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: mcfletch@vrplumber.com 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357222761 news.xs4all.nl 6914 [2001:888:2000:d::a6]:60342 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36061 On 13-01-02 09:48 PM, Terry Reedy wrote: ... > 2) self.lightDone: Invalid name "lightDone" (should match >> [a-z_][a-z0-9_]{2,30}$) >> >> So I can now understand that pylint doesn't like my naming convention >> with a capital letter in the middle of the variable name, like: >> "lightDone" = a boolean value. I suppose pylint wants me to use (a >> little longer method) an underscore to separate words in long variable >> names... > > That is more conventional in the Python community (and is in pep 8, I > believe) but still a choice. That seems like a improper error message from the tool. "Invalid name" does *not* properly describe that situation. The name is *not* "Invalid" in any sense of the word, and a "checker" that tells you it is is creating needless false-positives. An error checker should be saying something like: "self.lightDone: Does not match PEP8 recommended style" making it clear that this is *not* an error, it is a *style* related *warning*. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com