Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'skip:[ 20': 0.03; '"""': 0.05; 'suppose': 0.07; 'commonly': 0.09; 'pep': 0.09; 'recommends': 0.09; 'url:peps': 0.09; 'cc:addr :python-list': 0.10; '(should': 0.16; 'finney': 0.16; 'lowercase': 0.16; 'naming': 0.16; 'url:pep-0008': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'url:dev': 0.17; 'jan': 0.18; '(or': 0.18; 'names.': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'appearance': 0.27; 'document.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'regular': 0.27; 'chris': 0.28; 'initial': 0.28; 'styles': 0.29; 'writes:': 0.29; 'class': 0.29; "i'm": 0.29; 'url:python': 0.32; 'purposes,': 0.33; 'received:google.com': 0.34; 'ben': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'except': 0.36; 'but': 0.36; 'url:org': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'subject:, ': 0.61; 'letters': 0.62; 'subject:...': 0.63; 'capital': 0.68; '2013': 0.84; 'bumpy': 0.84; 'sender:addr:chris': 0.84; 'subject:very': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=wpk6rhh8jFFQes9qxNUqW2Pdk6bD4c+mYGXdag3vc48=; b=DY7ghGYxtRnYoD6FgnbjRm3RS3do2MeMkj9ex7vRzNIcJGAhOd8kr0WZCx04Vgati0 do2+Hzf95fMTX2Mssu3ueyJaR5SWazkRMyFCLVUtIHi/oMFwReX6tr28QE06uq/gTwLr o2gDfQTKPf9nuUljiAyqTY7PodRcyjjDsWR9U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=wpk6rhh8jFFQes9qxNUqW2Pdk6bD4c+mYGXdag3vc48=; b=NVco2VdkmzjrX3g+zxKq/wGmj6O5NjOYKB2/9kzB0WN1o0z10rJvwwr+W+i0xjv6Oz GUu6odPE1ZffKh3u4D04nefDqja01+xeITtEh3sxZyS42nJJh+i9kn11Qc62/6nL+JV9 RhAuFe9FSiZl4ZlUKGpA5X2kwgwzSuXSKNTHAi4QKPEaMLyif1agufDKJ9Kpsd2f0md5 RdvNLbgG4n801TiVtuIkHVL50id+1Cw2TWUVUQHBEYhdRphEY54aCYcTVR6QufPGZOwP pF8N8l6Rru/mxt2gJnV73gOYqUep1Rn2UqBjQXyhOpuX2hHXLJoNyIjdI5PMyEsLFwt4 t+NQ== MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <7wk3rux0t8.fsf@benfinney.id.au> References: <50e4c83b$0$30003$c3e8da3$5496439d@news.astraweb.com> <7wk3rux0t8.fsf@benfinney.id.au> Date: Wed, 2 Jan 2013 22:33:36 -0800 X-Google-Sender-Auth: NlrcevQTrmdrmnRmhTSMkgp74Ko Subject: Re: pylint, was Re: pygame - importing GL - very bad... From: Chris Rebert To: Ben Finney Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkM3F6q9ox2k3P3mbWtfF6hdGbVLgBxFvnXn0nKRswle2rAVXYGHRcwzy4WcHyu9m7WfgaP Cc: python-list@python.org 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357194819 news.xs4all.nl 6918 [2001:888:2000:d::a6]:37225 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36039 On Wed, Jan 2, 2013 at 10:01 PM, Ben Finney wr= ote: > Ian Kelly writes: > >> 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. > > PEP 8 discourages camelCase for names except for compatibility purposes, > and recommends TitleCase for class names. If we must quibble over meta-nomenclature... http://www.python.org/dev/peps/pep-0008/ : """ The following naming styles are commonly distinguished: [...] * CapitalizedWords (or CapWords, or CamelCase -- so named because of the bumpy look of its letters [3]). [=E2=80=A6] * mixedCase (differs from CapitalizedWords by initial lowercase character!) """ The term "TitleCase" does not make an appearance in the document. Regards, Chris