3 ms·
It's a Google-specific legacy mistake. IIRC, they even do (used to do?) two-space indentation for Python.
by lima 3y ago
It's a Google-specific legacy mistake. IIRC, they even do (used to do?) two-space indentation for Python.
- Hamuko 3y agohttps://google.github.io/styleguide/pyguide.html#34-indentation https://google.github.io/styleguide/pyguide.html#34-indentat... suggests that they use four spaces.
- auscompgeek 3y agoThe ChromiumOS Python style guide notes the difference between Google's public Python style guide and their internal one. > New projects should use that unmodified public Python Google style guide (4 space indent with methods_with_underscores). Historically, we adopted a style that was congruent with Google internal Python style guide (2 spaces with MethodsAsCamelCase). https://chromium.googlesource.com/chromiumos/docs/+/HEAD/styleguide/python.md https://chromium.googlesource.com/chromiumos/docs/+/HEAD/sty...
- kotborealis 3y agoSome Google python-based projects, like oss-fuzz, are still indented with 2 spaces, which is a huge pain.