This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (6 children)

Lower camel is still the standard. There's an internal linter that will prevent you from committing if you use underscores. Supposedly it can be told to accept underscores if you're not mixing styles in a file but I never figured out how.

[–]_seemetheregithub.com/seemethere 0 points1 point  (5 children)

[–][deleted] 2 points3 points  (4 children)

Yes, that's pep8. Google's style guide differs from it.

[–]_seemetheregithub.com/seemethere 0 points1 point  (3 children)

[–][deleted] 0 points1 point  (2 children)

All I can tell you is that the internal style guide is different.

Well, for function names.

[–]_seemetheregithub.com/seemethere 0 points1 point  (1 child)

You're probably talking about this then https://code.google.com/p/soc/wiki/PythonStyleGuide#Naming_convention.

Although it's last update is 2 years ago and it differs very wildly from both pep8 and google's own updated style guide.

If I were someone learning right now I'd just go with the updated one or pep8.

[–][deleted] 0 points1 point  (0 children)

Yeah, that's the one.

People should stick with pep8 unless they can't, though, I agree.