Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 841935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:52:47+00:00 2026-05-15T05:52:47+00:00

Whitespace is signification in Python in that code blocks are defined by their indentation.

  • 0

Whitespace is signification in Python in that code blocks are defined by their indentation.

Furthermore, Guido van Rossum recommends using four spaces per indentation level (see PEP 8: Style Guide for Python Code).

What was the reasoning behind not requiring exactly four spaces per indentation level as well? Are there any technical reasons?

It seems like all the arguments that can be made for making whitespace define code blocks can also be used to argument for setting an exact whitespace length for one indentation level (say four spaces).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:52:47+00:00Added an answer on May 15, 2026 at 5:52 am

    There are no technical reasons. It would not be too hard to modify the Python interpreter to require exactly four spaces per indentation level.

    Here is one use case for other indentation levels: when typing into the interactive interpreter, it’s very handy to use one-space indentations. It saves on typing, it’s easier to count the number of spaces correctly, and readability is not a major concern (since the code isn’t even saved in a file).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 494k
  • Answers 494k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The replace and Math.max functions don't work the way your… May 16, 2026 at 11:06 am
  • Editorial Team
    Editorial Team added an answer create a new table with the contents of SYSOBJECTS and… May 16, 2026 at 11:06 am
  • Editorial Team
    Editorial Team added an answer well i ended up in creating a helper class with… May 16, 2026 at 11:06 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Python's string.whitespace is great: >>> string.whitespace '\t\n\x0b\x0c\r ' How do I use this with
Obviously having whitespace in css, aspx and html pages is a great advantage at
I am getting 'trailing whitespace' errors trying to commit some files in Git. I
To add a whitespace seperator in a string we use String.Join(). My question:What(and how)
I want to replace whitespace with underscore in a string to create nice URLs.
I'm seeing extra whitespace at the very bottom of this page but only in
Conflicts on whitespace suck Whitespace has ended up being a horrible pain for me
Jeff Atwood wrote about whitespace and suggested creating commit hook which removes trailing whitespace
Getting lots of additional whitespace in the html output, looks like its because of
What is the problem with parsing the blank/whitespace? scala> object BlankParser extends RegexParsers {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.