Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 466587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:29:43+00:00 2026-05-12T23:29:43+00:00

Depending on your interpretation this may or may not be a rhetorical question, but

  • 0

Depending on your interpretation this may or may not be a rhetorical question, but it really baffles me. What sense does this convention make? I understand naming conventions don’t necessarily have to have a rhyme or reason behind them, but why deviate from the already popular camelCase? Is there a rhyme and reason behind lower_case_with_underscores that I’m somehow missing? (and yes, I have read PEP 8 in its entirety, and yes, I do understand that it’s merely a proposal, a guide, etc.)

I suppose my real question would be this: I’m writing a Python library. In fact, with any luck, it may be a rather large library, relative to my other projects. I already try to adhere to PEP 8 as much as possible, and so far I’ve even maintained lower_case_with_underscores as PEP 8 instructs for function and method names. But it bugs me that I have to remember to use camelCase for Twisted, camelCase for logging, and just about everything else. What naming convention should I use, and why?

It would probably amaze people that I care this much about naming, enough to write a lengthy question about it, and it amazes me, too. Perhaps I have a little OCD when it comes to these things. I don’t have much of a “personal opinion” about it as much as I have a tendency to just go for whatever is used the most, which in this case, would be camelCase – but it annoys me even further to find out that I’m probably breaking some eternal laws about explicit vs implicit and the zen of python written in stone or something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:29:43+00:00Added an answer on May 12, 2026 at 11:29 pm

    camelCase and/or CamelCase (and that’s a debate in its own right;-) may be overwhelmingly most popular for the kind of environments you are most familiar with, but that hardly makes them universal — or have you never heard of the obscure language called C++, with its std::find_first_of and std::replace_copy_if algorithms and so on?!

    So there’s no “deviation”, as you state, in PEP 8 — simply a choice towards the C++-standard conventions against the ones more popular in, say, Java or C#.

    As for what you should do for your own code, just pick a convention and stick with it — consistency’s more important than other considerations. My employer uses a CamelCase convention across all languages for all internal sources (though not necessarily when it comes to exposing public APIs, which is a separate issue), I personally detest it (I wish I could destroy every reliance on case sensitivity across the programming universe!-), but I stick to it, and actually help enforce it (in code reviews), because uniformity is important.

    I guess you’ll understand why relying on case sensitivity is a horrible idea only if and when you have to rely on a screen reader to read code out to you — most screen readers do a horrible job at pinpointing case issues, and there’s no really good way, no strong or easy convention to convert case differences to easy auditory clues (while translating underscores to “clicks”, in a good configurable screen reader, makes it a breeze). For people without any visual impairments whatsoever, which is no doubt 90% or more, you don’t need to care (unless you want to be inclusive and help people who don’t share your gift of perfect vision… naah, who cares about those guys, right?!).

    But, consistency is still important, and helps _every_body.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OOTB, Robolectric does not support Locales that well. Therefore, if your app is dependent
This is somehow subjective depending on the target translation language, but bear with me
This value: {Binding Source={x:Static shell:SystemParameters2.Current}, Path=WindowNonClientFrameThickness} Is usually something like 8,24,8,8 depending on your
Good morning, afternoon, evening or night (depending on your timezone). This is just a
EDIT: This question was misexpressed. What I've really wanted to ask was: Is there
I've received Mixed responses on this depending what walk-through I read, I've defined a
Depending on the feedback I get, I might raise this standard with my colleagues.
This is what I have, did anyone has an idea to make it configuring
I have a very similar situation to what's described in this question : Engineer
I often need to run reduce (also called foldl / foldr, depending on your

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.