the main difference is that Google Python Style comes with more details about how to write code, for example how to write your docstrings or when to use aliases for a variable, this are not specified in the PEP8
Answer from kederrac on Stack OverflowCode style guide recommendation
When picking what standard to use in any project, you should try the options in the following order: The standard already in use on the project The standard required by the company you're doing the project for The standard for the language you're writing in Anything you want, just be consistent At your stage, you're probably not joining an existing project or doing the work for a company, so the first two options don't fit. Option 3 is pick the standard for the language you're using - for Python that's PEP-8 so you should use PEP-8. Note that you should very rarely if ever end up on option 4, most languages will have a suggested style guide so it's very much a last resort. More on reddit.com
Google's official python tutorial violates PEP8, recommends python 2.4-2.6, and my university just assigned it to us.
Python2 is officially being unsupported in 27 months More on reddit.com
TIL about "Google Python Style Guide"
It'd be great if any of Google's python API libraries vaguely followed this style guide, it's actually pretty good! More on reddit.com
What's the difference between pep8 and google style? Could give some demo? thanks
What's the difference between pep8 and google style? Could give some demo? thanks#142 · Copy link · Labels · question · axiaoxin · opened · on May 15, 2015 · Issue body actions · :) No one assigned · question · No type · No projects · No milestone · More on github.com
LinuxTut
linuxtut.com › en › f43ced224483ea1f62f4
[Python coding standard] PEP 8 vs Google Style
August 23, 2020 - A well-known Python coding standard ... summarized how Google Style differs from PEP 8. From the conclusion, it was almost the same as PEP 8, so I omitted the common rules (especially blank lines and blanks)....
Google
google.github.io › styleguide › pyguide.html
Google Style Guides | Style guides for Google-originated open-source projects
Python is the main dynamic language used at Google. This style guide is a list of dos and don’ts for Python programs.
YouTube
youtube.com › codecreate
google python style guide vs pep8 - YouTube
Download this code from https://codegive.com When it comes to writing clean, readable, and consistent Python code, developers often turn to style guides for ...
Published: December 24, 2023
Views: 18
Medium
wyounas.medium.com › style-guides-and-googles-python-code-2e3f6b35403d
Style guides and Google’s Python code | by Waqas Younas | Medium
October 13, 2018 - I had to look at a few Google Ad libraries to learn about a couple things, and I came across this library: https://github.com/googleads/googleads-ssr-generator. I downloaded the code and opened it up in the source-code editor. The main file looks simple in that it’s roughly 230 lines with most of the code defined in methods. I, however, was not able to run the code on a Mac given the instructions in the README file. What surprised me most is the fact that the code is not PEP-8 (Python’s official style guide)-compliant.
Reddit
reddit.com › r/learnpython › code style guide recommendation
r/learnpython on Reddit: Code style guide recommendation
December 8, 2024 -
Do you recommend reading PEP-8 or any style guides when learning python?
Top answer 1 of 4
4
When picking what standard to use in any project, you should try the options in the following order: The standard already in use on the project The standard required by the company you're doing the project for The standard for the language you're writing in Anything you want, just be consistent At your stage, you're probably not joining an existing project or doing the work for a company, so the first two options don't fit. Option 3 is pick the standard for the language you're using - for Python that's PEP-8 so you should use PEP-8. Note that you should very rarely if ever end up on option 4, most languages will have a suggested style guide so it's very much a last resort.
2 of 4
2
You might want to watch some of the talks by Raymond Hettinger, https://thelinuxcode.com/the-art-of-writing-beautiful-python-code-lessons-from-raymond-hettinger/
Reddit
reddit.com › r/python › google's official python tutorial violates pep8, recommends python 2.4-2.6, and my university just assigned it to us.
r/Python on Reddit: Google's official python tutorial violates PEP8, recommends python 2.4-2.6, and my university just assigned it to us.
January 3, 2018 - --- If you have questions or are new to Python use r/LearnPython ... Archived post. New comments cannot be posted and votes cannot be cast. Share ... If I recall correctly Google in general doesn't follow PEP8, most notably they use two spaces for indentation instead of 4, and this tutorial is targeted to Google employees, so this makes sense. ... In fact, google publishes their own style guide.
Bigchaindb
docs.bigchaindb.com › en › latest › contributing › cross-project-policies › python-style-guide.html
Python Style Guide — BigchainDB 2.2.2 documentation
The hooks we use can be found in the .pre-commit-config.yaml file. PEP8 says some things about docstrings, but not what to put in them or how to structure them. PEP257 was one proposal for docstring conventions, but we prefer Google-style docstrings instead: they’re easier to read and the ...
iO Flood
ioflood.com › blog › pep8
PEP8 Python Style Guide
November 21, 2023 - For instance, Google’s guide recommends a maximum line length of 80 characters (compared to PEP8’s 79), and it prefers using single quotes for strings unless a string contains a single quote character. To illustrate these differences, let’s look at a comparison table: Here’s an example of code that follows Google’s Python Style ...
Reddit
reddit.com › r/python › til about "google python style guide"
r/Python on Reddit: TIL about "Google Python Style Guide"
November 27, 2015 - As far as I remember, it's pretty much the same as PEP8. ... I use numpydoc for documentation, especially when working with robots or other hardware. It's much more powerful than googledoc.
Website-files
assets-global.website-files.com › 66f3da902ceaa8d3b810b189 › 681ae3a74d1fff829473bb7b_lufox.pdf pdf
Python style guide google
Define how Google approaches using (and not using) different elements of the Python language within their code. This section provides guidance on structuring code to ensure consistency and maintainability. * **Python Style Rules**: Focus on formatting, stylistic practices, and best practices for coding.
Hacker News
news.ycombinator.com › item
Google Python Style Guide | Hacker News
May 11, 2010 - No such item
Uni-freiburg
proglang.informatik.uni-freiburg.de › teaching › info1 › 2019 › guide › styleguide.html
Python Style Guide — Info I Guide (WS 2019)
Entsprechendes gilt für Variablennamen (siehe [PEP8]). Am Anfang jeder Python-Datei steht ein Doc-String der kurz den Inhalt der Datei bescheibt. Dies ist auch der geeignete Ort, um Metadaten (z.B. Informationen zum Autor, Lizenz, etc.) zu listen. Jede definierte Funktion wird mit einem Doc-String versehen werden. Im Rahmen der Vorlesung verwenden wir dazu ein Schema in Anlehnung an PEP 257 [PEP257] und dem Google Python Style Guide [GPSG]. Siehe hierzu Doc-Strings.
Google
chromium.googlesource.com › chromiumos › platform › factory › + › HEAD › CODING_STYLE.md
Coding Style Guide
The ChromiumOS python style guide has changed to 4-space indent, but we are still using 2-space indent in factory projects. PEP-8 says that acronyms are written in upper-case: HTTPServerError not HttpServerError. We follow PEP-8 here. You should also read and abide by the Google Python style ...
Reddit
reddit.com › r/learnpython › style guides for python
r/learnpython on Reddit: Style Guides for Python
March 18, 2020 -
After some other people pointed out on my previous post that I was lacking a style guide for my code, I wanted to look into making my code more user friendly. I tried following along with the PEP 8 style guide on the python website, but I don’t feel like I am retaining any of the info. Would you be able to help me figure out ways to improve the style and redundancy of my code. Thank you
Top answer 1 of 5
43
The best way is to use a linter, e.g. pylint or flake8. What IDE do you use? VS Code will give you linting for free (i.e. with no extra effort) with the python extension.
2 of 5
33
When i started developing in PyCharm it really helped my style. It automatically was checking my code and notifying me when i wasn't following PEP8. I'm beginner and this is what helped me.