You are viewing a single thread.
View all comments View context
13 points

I thought python allowed whatever indentation you wanted as long as it’s consistent?

permalink
report
parent
reply
20 points

pep8 calls for 4 space but it is a guidance not a rule.

Google internal style guide recommend(ed?) 2 spaces to accomodate the line length limit.

permalink
report
parent
reply
10 points

It does, but most style guides and autoformatters will use 4

permalink
report
parent
reply
11 points

Python is one of the few languages with an official style guide, I think that guide says 4 spaces.

permalink
report
parent
reply
5 points

Tabs!

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.4K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments