Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74832

Re: What's the proper style for a library string function?

Date 2014-07-19 12:43 -0700
From "C.D. Reimer" <chris@cdreimer.com>
Subject Re: What's the proper style for a library string function?
References <53CAAD27.9010207@cdreimer.com> <lqed60$si$1@ger.gmane.org> <CALwzidkUxB7u7XJ--61GcwB2HAHWRU6Tysy_5Stf4_Qe3XzqCw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12060.1405799051.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 7/19/2014 11:56 AM, Ian Kelly wrote:
> On Sat, Jul 19, 2014 at 12:24 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
>
>
> Also notice that I changed the function naming style from mixedCase to
> lower_case_with_underscores. This is the style recommended for Python
> by PEP 8, which you should read if you haven't already.
> http://legacy.python.org/dev/peps/pep-0008/#naming-conventions

I love how that section of PEP 8 begins with: "The naming conventions of 
Python's library are a bit of a mess, so we'll never get this completely 
consistent -- nevertheless, here are the currently recommended naming 
standards."

My code is certainly in "a bit of a mess" as I'm still learning Python. 
Following the "Core Python Programming" book for the most part, and 
writing scripts to solve the problems that I'm having. I got an 
associate degree in computer programming but never mastered a 
programming language outside of web development. I'll need to unlearn 
all the bad habits I picked up with PHP over the years.

Chris Reimer

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: What's the proper style for a library string function? "C.D. Reimer" <chris@cdreimer.com> - 2014-07-19 12:43 -0700

csiph-web