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

C.D. Reimer chris at cdreimer.com
Sat Jul 19 21:43:24 CEST 2014

On 7/19/2014 11:56 AM, Ian Kelly wrote:
> On Sat, Jul 19, 2014 at 12:24 PM, Mark Lawrence <breamoreboy at 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 

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

More information about the Python-list mailing list