Python Style Guide from Google
google.github.io
Python Style Guide from Google
1–10 of 30 posts
Re: Python Style Guide from Google
#2Re: Python Style Guide from Google
#3Re: Python Style Guide from Google
#4Google internally does not always follow this guide. Different project can come up with its own style.
Re: Python Style Guide from Google
#5Re: Python Style Guide from Google
#6Google's C++ style guide is much more interesting: https://google.github.io/styleguide/cppguide.html
Re: Python Style Guide from Google
#74 spaces? seriously? Why would anyone type out 4 spaces instead of one tab?
Re: Python Style Guide from Google
#84 spaces? seriously? Why would anyone type out 4 spaces instead of one tab?
Re: Python Style Guide from Google
#94 spaces? seriously? Why would anyone type out 4 spaces instead of one tab?
Also, you don't need to type 4 (or however many) spaces directly. Most programming editors can be configured to insert spaces when you press tab, or to replace existing tabs in a file to spaces.
Re: Python Style Guide from Google
#10Google internally does not always follow this guide. Different project can come up with its own style.
In my experience, any Python code in the core codebase follows the (internal) style guide. Big mostly-standalone projects like YouTube have their own style.