What are the main differences between PEP8 and Google Python Style Guide?

  1. most notably they use two spaces for indentation instead of 4.
  2. The CamelCase style for functions and methods instead of the camel_case style.

Upvotes: 3

Views: 6152

Answers (1)

kederrac
kederrac

Reputation: 17322

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

Upvotes: 8

Related Questions