Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

not the python one! https://google.github.io/styleguide/pyguide.html

anything other than 4 spaces for python look out of place for me.



I've seen a lot of Python from Google using two spaces, which I find very hard to read. Many of the samples here use two-space indentation: https://github.com/google/google-api-python-client/blob/mast...

Here's a specific example: https://github.com/google/google-api-python-client/blob/mast...


This is either outdated or only for the public version of the guide: the internal guide, and all our python code, has 2-spaces indents.


Meanwhile, the rest of the Python world probably follows PEP8, which uses 4 spaces.

https://www.python.org/dev/peps/pep-0008/#indentation




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: