Path: csiph.com!aioe.org!newsfeed.x-privat.org!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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'exception': 0.03; 'trailing': 0.07; '"if': 0.09; 'pep': 0.09; 'recommends': 0.09; '(like': 0.15; '(should': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'object()': 0.16; 'uppercase': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'disable': 0.22; 'names.': 0.22; 'header:In-Reply-To:1': 0.25; 'label': 0.27; 'message-id:@mail.gmail.com': 0.27; 'skip:( 20': 0.28; 'complain': 0.29; 'enforce': 0.29; 'style.': 0.29; 'skip:_ 10': 0.29; 'maybe': 0.29; 'rid': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'should': 0.36; 'too': 0.36; 'does': 0.37; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'skip:u 10': 0.60; 'leading': 0.61; 'subject:, ': 0.61; 'subject:...': 0.63; 'business.': 0.82; '2013': 0.84; 'otten': 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=cBhnywovpXLkpfUpo7z4UtQ2W6O+egHbXVtCbDWzDdo=; b=M3Gv8JwtNzMSemBGagFQIm6uOvI7TezxWnCJriUUQOtplousHcUuIs1EGQLoDx7iVl un7N4vfORbfuTc8+sPPmMnzmbPfIkVNcuW+ft26UrAYdOKEt0cJNTg9BndYHuSHL+r5i 4s/XVwqy2EtTXV1wO0I3+C+q908zlAY2yePRFMcfONLqGsiSkA5eV5f1aZ4aiPDjZqLa B+UVqGszZrcPfWWG7NgVpj+XsaLh8CEPnfl5HgcSB3uyb03X10QCMUg7ubzjhKj/QkGn vZUulkF3gUXHaTNULNdIdldooML7A0749y6TQUBPRlZRNX+RrY9e+laF4L4NqQHe/7lj Bgpg== MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 3 Jan 2013 01:32:57 +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: 1357137180 news.xs4all.nl 6983 [2001:888:2000:d::a6]:58077 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35994 On Wed, Jan 2, 2013 at 11:07 PM, Peter Otten <__peter__@web.de> wrote: > someone wrote: >> Another thing is that I don't understand this warning: >> >> Invalid name "original_format" (should match (([A-Z_][A-Z0-9_]*)| >> > (__.*__))$) >> >> I get it everywhere... I don't understand how it wants me to label my >> variables... Maybe I should disable this warning to get rid of it... > > pylint wants global names to be uppercase (what PEP 8 recommends for > constants) or "special" (two leading and two trailing underscores): > > THATS_OK = 42 > __thats_ok_too__ = object() > but_thats_not = "spam" Okay, I have to ask... why? Does it have an exception for names of classes? 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. ChrisA