3 ms·
not the python one! https://google.github.io/styleguide/pyguide.html https://google.github.io/styleguide/pyguide.html anything other than 4 spaces for python l
by fernandotakai 8y ago
not the python one! https://google.github.io/styleguide/pyguide.html https://google.github.io/styleguide/pyguide.html
anything other than 4 spaces for python look out of place for me.
- bru 8y agoThis is either outdated or only for the public version of the guide: the internal guide, and all our python code, has 2-spaces indents.
- teddyh 8y agoMeanwhile, the rest of the Python world probably follows PEP8, which uses 4 spaces. https://www.python.org/dev/peps/pep-0008/#indentation https://www.python.org/dev/peps/pep-0008/#indentation
- GavinAnderegg 8y agoI'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/master/samples/README.md https://github.com/google/google-api-python-client/blob/mast... Here's a specific example: https://github.com/google/google-api-python-client/blob/master/samples/coordinate/coordinate.py https://github.com/google/google-api-python-client/blob/mast...