4 ms·
This is because this follows Google’s internal Python styeguide, which was established well before PEP8 and even Python 2.x.
by q3k 6y ago
This is because this follows Google’s internal Python styeguide, which was established well before PEP8 and even Python 2.x.
- joshuamorton 6y agoNotably this is no longer true[0]. While legacy stuff can still use the CapWords styling, snake_case names are preferred for all new methods and functions (including code that wraps c++). But this is a relatively recent change to the style guide, and the proto libraries far predate it. (As a response to a sibling of the parent, the same rules apply to internal code, CapWords should only be used for consistency within a file. All new code should be embrace it's snakey heritage). [0]: https://google.github.io/styleguide/pyguide.html#3162-naming-conventions https://google.github.io/styleguide/pyguide.html#3162-naming...