Re: strange PyLint configuration (was: PEP 8 style enforcing program)
- From: "Eduardo \"EdCrypt\" O. Padoan" <eopadoan@xxxxxxxxxxx>
- Date: Thu, 31 May 2007 15:30:45 -0300
On 5/31/07, Bjoern Schliessmann
<usenet-mail-0306.20.chr0n0ss@xxxxxxxxxxxxxxx> wrote:
Alexander Eisenhuth wrote:
> Pylint is one of them (http://www.logilab.org/857)
BTW: Why does pylint want all names with underscores? I tested it
and it complains about malformed names in e.g. the following cases
that are conformant to PEP 8:
- single letter as parameter
This seems to be an Logilab internal restriction.
- firstLowerCamelCase names for instances and instance methods in
class declarations ("should match [a-z_][a-z0-9_]{2,30}$")
- all lowercase method names in class declarations
No. Quoting PEP 8:
Functions:
"""
mixedCase is allowed only in contexts where that's already the
prevailing style (e.g. threading.py), to retain backwards compatibility.
"""
Methods and instances:
"""
Use the function naming rules: lowercase with words separated by
underscores as necessary to improve readability.
"""
Those policies are barely usable, IMHO, and neither practical.
I Desagree.
--
EduardoOPadoan (eopadoan->altavix::com)
Bookmarks: http://del.icio.us/edcrypt
.
- Follow-Ups:
- Re: strange PyLint configuration
- From: Bjoern Schliessmann
- Re: strange PyLint configuration
- References:
- PEP 8 style enforcing program
- From: montyphyton
- Re: PEP 8 style enforcing program
- From: Alexander Eisenhuth
- strange PyLint configuration (was: PEP 8 style enforcing program)
- From: Bjoern Schliessmann
- PEP 8 style enforcing program
- Prev by Date: Adding tuples to a dictionary
- Next by Date: Re: c[:]()
- Previous by thread: strange PyLint configuration (was: PEP 8 style enforcing program)
- Next by thread: Re: strange PyLint configuration
- Index(es):