Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'skip:[ 20': 0.03; 'suppose': 0.07; 'recommends': 0.09; 'underscore': 0.09; 'value.': 0.15; '(should': 0.16; 'boolean': 0.16; 'naming': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'variable': 0.20; 'names.': 0.22; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'separate': 0.27; 'convention': 0.27; 'message-id:@mail.gmail.com': 0.27; 'regular': 0.27; "doesn't": 0.28; 'long.': 0.29; 'yes.': 0.29; 'words': 0.29; 'class': 0.29; "i'm": 0.29; 'like:': 0.33; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'characters': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'end': 0.40; 'subject:, ': 0.61; 'subject:...': 0.63; 'middle': 0.66; 'capital': 0.68; '2013': 0.84; 'to:name:python': 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:from:date:message-id:subject:to :content-type; bh=CV8+7IJ6781sBF177IFxapiJcEqjJEqDfyzEun8sXKU=; b=xeiZjqmX2IjdidTwc5iojR9KBBm7sjfCqL44vd5ACzn3u5oKzA9o2wTLnzJeX0nuSK ojif8YyU8De01h//v8HhgumTn2kwzQOi5uPLdt2UYL4j253UDHRA5qDgo+eP0mPJoHnh +4iD9fzlCDfA8Nch7IBM0E3XtR+Dk39BpZhKLssc1MLwoPHi8CT1Obdzmjo8uKc9+xok PZ3R2DxmuW6dMYI4fBbbhWICyfzZUeKpnXB2FApzhb9vQA5mJ7N+fcJQLvXtPbC9n61i TrykdMKXD3QE2UviQvSYg1GxTcSz1KOCK/j7XPEU1XmIyi8XEclhlcJvpHGFPFtwK2F4 IfUA== MIME-Version: 1.0 In-Reply-To: References: <50e4c83b$0$30003$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Wed, 2 Jan 2013 19:55:07 -0700 Subject: Re: pylint, was Re: pygame - importing GL - very bad... To: Python 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357181747 news.xs4all.nl 6983 [2001:888:2000:d::a6]:54515 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36028 On Wed, Jan 2, 2013 at 7:24 PM, someone wrote: > 1) class somethingWork: Invalid name "somethingWork" (should match > [A-Z_][a-zA-Z0-9]+$), I'm not that good at regular exps, but I suppose it > wants my class name to start with a capital letter ? Yes, PEP-8 recommends CamelCase for class names. > 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... Also yes. > 3) self.rx / rself.ry / self.rz: Invalid name "rx" (should match > [a-z_][a-z0-9_]{2,30}$) - so I suppose it wants this name to end with an > underscore ? It wants the name to be at least 3 characters long.