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 7597635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:12:16+00:00 2026-05-30T22:12:16+00:00

The Python Style Guide recommends not putting white spaces in expressions and statements. So,

  • 0

The Python Style Guide recommends not putting white spaces in expressions and statements.
So, when I do these:

def testme( first_arg, second_arg ):
    pass

testme( 'a', 'b' )

and run pep8 against it, it will complain about the white spaces.

I know this is just a style guide so it should not affect the code but I want to understand the logic behind this style. To me, the white spaces gives more clarity. Is this something universally accepted in most programming language?

  • 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-30T22:12:17+00:00Added an answer on May 30, 2026 at 10:12 pm

    This is style, something that is an opinion. Wherever an opinion exists, people will disagree. That is fine and that is how it works.

    But there’s more. This is code – it’s not only meant to be read by the next person, he/she will most likely also be editing the code.

    And everything goes fine – until two people with different styles edit the same code that is. Everything will look different, the code will be confusing and bugs will start appearing.

    But there’s more. In Python whitespace is semantic, if you start mixing 4 spaces with tabs everything goes wrong. So having different styles in the same file (and same project for that matter) is even worse in Python than in most languages.

    For this reason PEP 8 was created, an attempt to create an universal style guide for Python. It is of course your choice whether or not to follow this guide, but it is recommended.

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

Sidebar

Related Questions

I try to adhere to the style guide for Python code (also known as
The PEP 8 style guide (Python) says methodnames should be lowercase and that sometimes
Why does the Google Python Style Guide prefer list comprehensions and for loops instead
Is there a (or several) coding style guide for node.js? If not, what are
Would what mentioned in the title be possible? Python module style that is. See
I've found a strange issue with subclassing and dictionary updates in new-style classes: Python
Does Python have a unit testing framework compatible with the standard xUnit style of
Does anybody know of a python module to parse a doxygen style C++ comment
What is the difference between old style and new style classes in Python? When
I've been looking around for an existing python library in the style of textile

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.