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!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; 'suppose': 0.07; 'pep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'recommends': 0.09; '(should': 0.16; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'names.': 0.22; "i've": 0.23; 'header:User-Agent:1': 0.26; 'regular': 0.27; 'header:X-Complaints-To:1': 0.28; 'wright': 0.29; 'writes:': 0.29; 'class': 0.29; "i'm": 0.29; 'purposes,': 0.33; 'to:addr:python-list': 0.33; 'ben': 0.35; 'pm,': 0.35; 'received:org': 0.36; 'except': 0.36; 'but': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'subject:, ': 0.61; 'subject:...': 0.63; 'capital': 0.68; '2013': 0.84; 'forgotten': 0.91; 'subject:very': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: pylint, was Re: pygame - importing GL - very bad... Date: Thu, 03 Jan 2013 17:01:07 +1100 References: <50e4c83b$0$30003$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: rasputin.madmonks.org X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:4gTZjxHFN5eqr7ZsFWOUkVUnU78= 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357192881 news.xs4all.nl 6844 [2001:888:2000:d::a6]:59442 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36038 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. -- \ “I'm having amnesia and déjà vu at the same time. I feel like | `\ I've forgotten this before sometime.” —Steven Wright | _o__) | Ben Finney