Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

27
  • 206
    PEP = Python Enhancement Proposal. Commented Jul 31, 2009 at 21:18
  • 12
    The only problem with using underscores is that you can't select a variable or function name with a double click... you have to select the text manually. It is slightly annoying. Commented Dec 7, 2013 at 14:13
  • 78
    One case for the underscored style is that you can use one-letter-words better. For (a rather silly) example, findMeAClass is perhaps uglier than find_me_a_class. Commented Jun 28, 2014 at 21:16
  • 21
    I find that the convention of all-lowercase variable names is not suitable in scientific computing, where one often comes across well-known constants, tensors etc. that are denoted by capital letters. Commented Oct 17, 2014 at 20:00
  • 29
    @rr PEP8 is a "Style Guide", and describes itself as a Convention, NOT a Standard. It also clearly explains the reasons for not always following those "rules". Commented Mar 13, 2015 at 8:28