pylint, was Re: pygame - importing GL - very bad...

Ben Finney ben+python at benfinney.id.au
Thu Jan 3 07:01:07 CET 2013


Ian Kelly <ian.g.kelly at gmail.com> writes:

> On Wed, Jan 2, 2013 at 7:24 PM, someone <newsboost at gmail.com> 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




More information about the Python-list mailing list