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


Groups > comp.lang.python > #74832 > unrolled thread

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

Started by"C.D. Reimer" <chris@cdreimer.com>
First post2014-07-19 12:43 -0700
Last post2014-07-19 12:43 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

From"C.D. Reimer" <chris@cdreimer.com>
Date2014-07-19 12:43 -0700
SubjectRe: What's the proper style for a library string function?
Message-ID<mailman.12060.1405799051.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web