Python Naming Styles: Underscores v.s. mixedCase
When naming variables, functions, and methods, the Style Guide for Python Code calls for “lowercase with words separated by underscores as necessary to improve readability.” It goes on to say “mixedCase is allowed only in contexts where that’s already the prevailing style (e.g. threading.py), to retain backwards compatibility.”
Fuck that.
You know, I usually like to do things by the book, and I’m obviously not going to claim to know better than Guido, but I really don’t understand this guy’s obsession with using underscores all over the place. Those things are ugly as hell. They should be reserved for other inherently ugly things like GLOBAL_VARIABLES. It’s bad enough that I have these hideous built-in __methods__ everywhere. I’m sticking with mixedCase until Python starts emitting warnings about it.