Ошибка e226 python

The E226 error code is about «missing whitespace around arithmetic operator».

I use Anaconda’s package in Sublime which will highlight as a PEP8 E226 violation for example this line:

hypot2 = x*x + y*y

But in Guido’s PEP8 style guide that line is actually shown as an example of recommended use of spaces within operators.

Question: which is the correct guideline? Always spaces around operators or just in some cases (as Guido’s recommendation shows)?

Also: who decides what goes into PEP8? I would’ve thought Guido’s recommendation would pretty much determine how that works.

asked Apr 22, 2016 at 12:58

Gabriel's user avatar

GabrielGabriel

40k72 gold badges225 silver badges397 bronze badges

6

The maintainers of the PEP8 tool decide what goes into it.

As you noticed, these do not always match the PEP8 style guide exactly. In this particular case, I don’t know whether it’s an oversite by the maintainers, or a deliberate decision. You’d have to ask them to find out, or you might find the answer in the commit history.

Guido recently asked the maintainers of pep8 and pep257 tools to rename them, to avoid this confusion. See this issue for example. As a result, the tools are getting renamed to pycodestyle and pydocstyle, respectively.

answered Apr 22, 2016 at 13:14

Alasdair's user avatar

AlasdairAlasdair

296k54 gold badges576 silver badges516 bronze badges

1

It says in PEP8:

If operators with different priorities are used, consider adding whitespace around the operators with the lowest priority(ies). Use your own judgment; however, never use more than one space, and always have the same amount of whitespace on both sides of a binary operator.
(Emphasis is my own).

In the listed example, + has a lower priority, so the BDFL elects to use whitespace around it and uses no whitespace around higher priority *.

answered Apr 22, 2016 at 13:07

erip's user avatar

eriperip

16.2k11 gold badges66 silver badges121 bronze badges

3

In this case that happened to me. We should have space always between numbers or variables and operations.

example:

a=b*4 wrong


a = b * 4  correct

answered Mar 15, 2022 at 11:42

Jalil Nourmohammadi Khiarak's user avatar

There should be one space before and after an arithmetic operator (+, -, /, and *).

Anti-pattern

Best practice

Additional links

  • https://www.python.org/dev/peps/pep-0008/#pet-peeves

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Pick a username
Email Address
Password

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

The E226 error code is about «missing whitespace around arithmetic operator».

I use Anaconda’s package in Sublime which will highlight as a PEP8 E226 violation for example this line:

hypot2 = x*x + y*y

But in Guido’s PEP8 style guide that line is actually shown as an example of recommended use of spaces within operators.

Question: which is the correct guideline? Always spaces around operators or just in some cases (as Guido’s recommendation shows)?

Also: who decides what goes into PEP8? I would’ve thought Guido’s recommendation would pretty much determine how that works.

asked Apr 22, 2016 at 12:58

Gabriel's user avatar

GabrielGabriel

39.1k71 gold badges224 silver badges389 bronze badges

6

The maintainers of the PEP8 tool decide what goes into it.

As you noticed, these do not always match the PEP8 style guide exactly. In this particular case, I don’t know whether it’s an oversite by the maintainers, or a deliberate decision. You’d have to ask them to find out, or you might find the answer in the commit history.

Guido recently asked the maintainers of pep8 and pep257 tools to rename them, to avoid this confusion. See this issue for example. As a result, the tools are getting renamed to pycodestyle and pydocstyle, respectively.

answered Apr 22, 2016 at 13:14

Alasdair's user avatar

AlasdairAlasdair

292k53 gold badges565 silver badges507 bronze badges

1

It says in PEP8:

If operators with different priorities are used, consider adding whitespace around the operators with the lowest priority(ies). Use your own judgment; however, never use more than one space, and always have the same amount of whitespace on both sides of a binary operator.
(Emphasis is my own).

In the listed example, + has a lower priority, so the BDFL elects to use whitespace around it and uses no whitespace around higher priority *.

answered Apr 22, 2016 at 13:07

erip's user avatar

eriperip

16k10 gold badges66 silver badges121 bronze badges

3

In this case that happened to me. We should have space always between numbers or variables and operations.

example:

a=b*4 wrong


a = b * 4  correct

answered Mar 15, 2022 at 11:42

Jalil Nourmohammadi Khiarak's user avatar

The E226 error code is about «missing whitespace around arithmetic operator».

I use Anaconda’s package in Sublime which will highlight as a PEP8 E226 violation for example this line:

hypot2 = x*x + y*y
But in Guido’s PEP8 style guide that line is actually shown as an example of recommended use of spaces within operators.

So, which is the correct guideline? Always spaces around operators or just in some cases?

Also, who decides what goes into PEP8? I would’ve thought Guido’s recommendation would pretty much determine how that works.







May 23, 2019


in Python


by



• 7,910 points





297 views



1 answer to this question.

The maintainers of the PEP8 tool decide what goes into it.

As you noticed, these do not always match the PEP8 style guide exactly. In this particular case, I don’t know whether it’s an oversite by the maintainers, or a deliberate decision. You’d have to ask them to find out, or you might find the answer in the commit history.

Guido recently asked the maintainers of pep8 and pep257 tools to rename them, to avoid this confusion.






answered

May 23, 2019


by
SDeb


• 13,300 points



Related Questions In Python

  • All categories

  • ChatGPT
    (4)

  • Apache Kafka
    (84)

  • Apache Spark
    (596)

  • Azure
    (131)

  • Big Data Hadoop
    (1,907)

  • Blockchain
    (1,673)

  • C#
    (141)

  • C++
    (271)

  • Career Counselling
    (1,060)

  • Cloud Computing
    (3,446)

  • Cyber Security & Ethical Hacking
    (147)

  • Data Analytics
    (1,266)

  • Database
    (855)

  • Data Science
    (75)

  • DevOps & Agile
    (3,575)

  • Digital Marketing
    (111)

  • Events & Trending Topics
    (28)

  • IoT (Internet of Things)
    (387)

  • Java
    (1,247)

  • Kotlin
    (8)

  • Linux Administration
    (389)

  • Machine Learning
    (337)

  • MicroStrategy
    (6)

  • PMP
    (423)

  • Power BI
    (516)

  • Python
    (3,188)

  • RPA
    (650)

  • SalesForce
    (92)

  • Selenium
    (1,569)

  • Software Testing
    (56)

  • Tableau
    (608)

  • Talend
    (73)

  • TypeSript
    (124)

  • Web Development
    (3,002)

  • Ask us Anything!
    (66)

  • Others
    (1,947)

  • Mobile Development
    (263)

Subscribe to our Newsletter, and get personalized recommendations.

Already have an account? Sign in.

The E226 error code is about «missing whitespace around arithmetic operator».

I use Anaconda’s package in Sublime which will highlight as a PEP8 E226 violation for example this line:

hypot2 = x*x + y*y
But in Guido’s PEP8 style guide that line is actually shown as an example of recommended use of spaces within operators.

So, which is the correct guideline? Always spaces around operators or just in some cases?

Also, who decides what goes into PEP8? I would’ve thought Guido’s recommendation would pretty much determine how that works.







May 23, 2019


in Python


by



• 7,910 points





297 views



1 answer to this question.

The maintainers of the PEP8 tool decide what goes into it.

As you noticed, these do not always match the PEP8 style guide exactly. In this particular case, I don’t know whether it’s an oversite by the maintainers, or a deliberate decision. You’d have to ask them to find out, or you might find the answer in the commit history.

Guido recently asked the maintainers of pep8 and pep257 tools to rename them, to avoid this confusion.






answered

May 23, 2019


by
SDeb


• 13,300 points



Related Questions In Python

  • All categories

  • ChatGPT
    (4)

  • Apache Kafka
    (84)

  • Apache Spark
    (596)

  • Azure
    (131)

  • Big Data Hadoop
    (1,907)

  • Blockchain
    (1,673)

  • C#
    (141)

  • C++
    (271)

  • Career Counselling
    (1,060)

  • Cloud Computing
    (3,446)

  • Cyber Security & Ethical Hacking
    (147)

  • Data Analytics
    (1,266)

  • Database
    (855)

  • Data Science
    (75)

  • DevOps & Agile
    (3,575)

  • Digital Marketing
    (111)

  • Events & Trending Topics
    (28)

  • IoT (Internet of Things)
    (387)

  • Java
    (1,247)

  • Kotlin
    (8)

  • Linux Administration
    (389)

  • Machine Learning
    (337)

  • MicroStrategy
    (6)

  • PMP
    (423)

  • Power BI
    (516)

  • Python
    (3,188)

  • RPA
    (650)

  • SalesForce
    (92)

  • Selenium
    (1,569)

  • Software Testing
    (56)

  • Tableau
    (608)

  • Talend
    (73)

  • TypeSript
    (124)

  • Web Development
    (3,002)

  • Ask us Anything!
    (66)

  • Others
    (1,947)

  • Mobile Development
    (263)

Subscribe to our Newsletter, and get personalized recommendations.

Already have an account? Sign in.

В E226 код ошибки по поводу »отсутствует пробел вокруг арифметический оператор «.

Я использую пакет Anaconda в Sublime, который будет выделен как нарушение PEP8 E226, например, эта строка:

hypot2 = x*x + y*y

Но в руководстве по стилю PEP8 Гвидо эта строка фактически показана в качестве примера < a href = «https://www.python.org/dev/peps/pep-0008/#other-recommendations» rel = «noreferrer»> рекомендуется использовать пробелов внутри операторов.

Вопрос: какое правильное руководство? Всегда вокруг операторов или только в некоторых случаях (как показывает рекомендация Гвидо)?

Также: кто решает, что входит в PEP8? Я бы подумал, что рекомендация Гвидо во многом определит, как это работает.

2 ответа

Лучший ответ

Ответственные за инструмент PEP8 решают, что в него входит.

Как вы заметили, они не всегда точно соответствуют руководству по стилю PEP8. В данном конкретном случае я не знаю, является ли это чрезмерным посещением сопровождающих или обдуманным решением. Вам нужно попросить их выяснить это, или вы можете найти ответ в истории коммитов.

Недавно Гвидо попросил разработчиков инструментов pep8 и pep257 переименовать их, чтобы избежать этой путаницы. См. эту проблему, например,. В результате инструменты переименовываются в pycodestyle и pydocstyle соответственно.


8

Alasdair
22 Апр 2016 в 13:14

В PEP8 говорится:

Если используются операторы с разными приоритетами, рассмотрите добавление пробелов вокруг операторов с наименьшим приоритетом (ами). Используйте свое собственное суждение ; однако никогда не используйте более одного пробела и всегда используйте одинаковое количество пробелов с обеих сторон бинарного оператора. (Акцент — мой).

В приведенном примере + имеет более низкий приоритет, поэтому BDFL выбирает использовать пробелы вокруг него и не использует пробелы вокруг более высокого приоритета *.


5

erip
22 Апр 2016 в 13:07

What is PEP 8 ?

Before going into details of PEP 8 the first thing that we need to understand that what exactly is PEP and what is 8 signifies in PEP 8.
PEP contains the index of all Python Enhancement Proposals, known as PEPs. This is an aggregate of documents which explains about information, new features, process and environment settings for python community.
PEP numbers are assigned by the PEP editors, and once assigned are never changed. It signifies the document number.
PEP 8 means Python Enhancement Proposal document number 8 which details about Style Guide for Python Code. This style guide evolves over time as additional conventions are identified and past conventions are rendered obsolete by changes in the language itself.
Although there is no restriction of using all the PEP 8 rule these are good to have as it helps in making code consistency and improve code readability.

You can install, upgrade, uninstall pycodestyle.py (formerly called pep8)with these commands:

$ pip install pycodestyle
$ pip install --upgrade pycodestyle
$ pip uninstall pycodestyle

Enter fullscreen mode

Exit fullscreen mode

Pycodestyle(formerly called pep8) Usage

For demo purpose lets created a test python file with a function to find the max between two numbers find_max.py having content as —

def find_max_number(a:int,b:int)->int:
    return a if a>b else b
if __name__ == "__main__":
    find_max_number(10,15)
Executing pycodestyle for this file
pycodestyle find_max.py
find_max.py:3:22: E231 missing whitespace after ':'
find_max.py:3:26: E231 missing whitespace after ','
find_max.py:3:28: E231 missing whitespace after ':'
find_max.py:3:33: E225 missing whitespace around operator
find_max.py:4:18: E225 missing whitespace around operator
find_max.py:6:1: E305 expected 2 blank lines after class or function definition, found 1
find_max.py:7:23: E231 missing whitespace after ','
find_max.py:7:27: W292 no newline at end of file

Enter fullscreen mode

Exit fullscreen mode

In this case we have 8 violations.
As you see above, it outputs the file name which has violations, location, error code and that content.

In order to get output summary of PEP 8 violations we need run the following command pycodestyle --statistics --qq <file_name>

pycodestyle  --statistics -qq find_max.py
2       E225 missing whitespace around operator
4       E231 missing whitespace after ':'
1       E305 expected 2 blank lines after class or function definition, found 1
1       W292 no newline at end of file

Enter fullscreen mode

Exit fullscreen mode

In order to have more details on the voilation we need to use show-source option as pycodestyle --show-source <file_name>

pycodestyle  --show-source  find_max.py 
find_max.py:3:22: E231 missing whitespace after ':'
def find_max_number(a:int,b:int)->int:
                     ^
find_max.py:3:26: E231 missing whitespace after ','
def find_max_number(a:int,b:int)->int:
                         ^
find_max.py:3:28: E231 missing whitespace after ':'
def find_max_number(a:int,b:int)->int:
                           ^
find_max.py:3:33: E225 missing whitespace around operator
def find_max_number(a:int,b:int)->int:
                                ^
find_max.py:4:18: E225 missing whitespace around operator
    return a if a>b else b
                 ^
find_max.py:6:1: E305 expected 2 blank lines after class or function definition, found 1
if __name__ == "__main__":
^
find_max.py:7:23: E231 missing whitespace after ','
    find_max_number(10,15)
                      ^
find_max.py:7:27: W292 no newline at end of file
    find_max_number(10,15)
                        ^

Enter fullscreen mode

Exit fullscreen mode

Moreover you can see the description of how to fix. This is --show-pep8 option.

pycodestyle --show-pep8 find_max.py
find_max.py:3:22: E231 missing whitespace after ':'
    Each comma, semicolon or colon should be followed by whitespace.
Okay: [a, b]
    Okay: (3,)
    Okay: a[1:4]
    Okay: a[:4]
    Okay: a[1:]
    Okay: a[1:4:2]
    E231: ['a','b']
    E231: foo(bar,baz)
    E231: [{'a':'b'}]
find_max.py:3:26: E231 missing whitespace after ','
    Each comma, semicolon or colon should be followed by whitespace.
Okay: [a, b]
    Okay: (3,)
    Okay: a[1:4]
    Okay: a[:4]
    Okay: a[1:]
    Okay: a[1:4:2]
    E231: ['a','b']
    E231: foo(bar,baz)
    E231: [{'a':'b'}]
find_max.py:3:28: E231 missing whitespace after ':'
    Each comma, semicolon or colon should be followed by whitespace.
Okay: [a, b]
    Okay: (3,)
    Okay: a[1:4]
    Okay: a[:4]
    Okay: a[1:]
    Okay: a[1:4:2]
    E231: ['a','b']
    E231: foo(bar,baz)
    E231: [{'a':'b'}]
find_max.py:3:33: E225 missing whitespace around operator
    Surround operators with a single space on either side.
- Always surround these binary operators with a single space on
      either side: assignment (=), augmented assignment (+=, -= etc.),
      comparisons (==, <, >, !=, <=, >=, in, not in, is, is not),
      Booleans (and, or, not).
- If operators with different priorities are used, consider adding
      whitespace around the operators with the lowest priorities.
Okay: i = i + 1
    Okay: submitted += 1
    Okay: x = x * 2 - 1
    Okay: hypot2 = x * x + y * y
    Okay: c = (a + b) * (a - b)
    Okay: foo(bar, key='word', *args, **kwargs)
    Okay: alpha[:-i]
E225: i=i+1
    E225: submitted +=1
    E225: x = x /2 - 1
    E225: z = x **y
    E225: z = 1and 1
    E226: c = (a+b) * (a-b)
    E226: hypot2 = x*x + y*y
    E227: c = a|b
    E228: msg = fmt%(errno, errmsg)
find_max.py:4:18: E225 missing whitespace around operator
    Surround operators with a single space on either side.
- Always surround these binary operators with a single space on
      either side: assignment (=), augmented assignment (+=, -= etc.),
      comparisons (==, <, >, !=, <=, >=, in, not in, is, is not),
      Booleans (and, or, not).
- If operators with different priorities are used, consider adding
      whitespace around the operators with the lowest priorities.
Okay: i = i + 1
    Okay: submitted += 1
    Okay: x = x * 2 - 1
    Okay: hypot2 = x * x + y * y
    Okay: c = (a + b) * (a - b)
    Okay: foo(bar, key='word', *args, **kwargs)
    Okay: alpha[:-i]
E225: i=i+1
    E225: submitted +=1
    E225: x = x /2 - 1
    E225: z = x **y
    E225: z = 1and 1
    E226: c = (a+b) * (a-b)
    E226: hypot2 = x*x + y*y
    E227: c = a|b
    E228: msg = fmt%(errno, errmsg)
find_max.py:6:1: E305 expected 2 blank lines after class or function definition, found 1
    Separate top-level function and class definitions with two blank
    lines.
Method definitions inside a class are separated by a single blank
    line.
Extra blank lines may be used (sparingly) to separate groups of
    related functions.  Blank lines may be omitted between a bunch of
    related one-liners (e.g. a set of dummy implementations).
Use blank lines in functions, sparingly, to indicate logical
    sections.
Okay: def a():n    passnnndef b():n    pass
    Okay: def a():n    passnnnasync def b():n    pass
    Okay: def a():n    passnnn# Foon# Barnndef b():n    pass
    Okay: default = 1nfoo = 1
    Okay: classify = 1nfoo = 1
E301: class Foo:n    b = 0n    def bar():n        pass
    E302: def a():n    passnndef b(n):n    pass
    E302: def a():n    passnnasync def b(n):n    pass
    E303: def a():n    passnnnndef b(n):n    pass
    E303: def a():nnnn    pass
    E304: @decoratornndef a():n    pass
    E305: def a():n    passna()
    E306: def a():n    def b():n        passn    def c():n        pass
find_max.py:7:23: E231 missing whitespace after ','
    Each comma, semicolon or colon should be followed by whitespace.
Okay: [a, b]
    Okay: (3,)
    Okay: a[1:4]
    Okay: a[:4]
    Okay: a[1:]
    Okay: a[1:4:2]
    E231: ['a','b']
    E231: foo(bar,baz)
    E231: [{'a':'b'}]
find_max.py:7:27: W292 no newline at end of file
    Trailing blank lines are superfluous.
Okay: spam(1)
    W391: spam(1)n
However the last line should end with a new line (warning W292).

Enter fullscreen mode

Exit fullscreen mode

If we want to exclude specific errors and warning while running pycodestyle we can use the option -ignore and provide the comma separated values of the error codes need to be excluded.

pycodestyle - ignore=E231,E225 find_max.py
find_max.py:6:1: E305 expected 2 blank lines after class or function definition, found 1
find_max.py:7:27: W292 no newline at end of file

Enter fullscreen mode

Exit fullscreen mode

As we have put E231,E225 in the ignore list the PEP 8 violation count reduced to 2 from 8 which is without ignoring these errors.

PEP 8 Error codes

Code can either denote an error or warning in case of error codes the code start with E followed by a 3 digit number for e.g E101 and for warning code it start with E followed by a 3 digit number for e.g W191.

Below is the classification of error code based on series number.
100 series … (E1 and W1) related to indentation.
200 series … (E2 and W2) related to whitespace.
300 series … (E3 and W3) related to blank lines.
400 series … (E4 and W4) related to imports.
500 series … (E5 and W5) related to line length.
600 series … (E6 and W6) related to deprecation.
700 series … (E7) related to statements.
900 series … (E9) related to syntax errors.

You can refer to official document for more detailing on error code link.

Customization of pep8

We can customise the PEP 8 config to meet our requirement as in we might need to ignore certain errors and warning and also we want to alter the max-line-length etc.
Default user configuration file is in ‘~/.config/pycodestyle‘.
You can write the configuration file as below, this is same as option.

[pep8]
ignore = E231,E225
max-line-length = 160

Enter fullscreen mode

Exit fullscreen mode

You can specify the configuration file location by--config=<configration_file_location> .
By storing above configuration file in a certain location in respective projects, you can share it in the projects.
At the project level, a setup.cfg file or a tox.ini file is read if present (.pep8 file is also supported, but it is deprecated). If none of these files have a [pep8] section, no project specific configuration is loaded.

Commonly used PEP 8 guidelines

The PEP 8 guidelines can classified in 7 different categories as

Code Lay-out

  • Use 4 spaces per indentation level.
  • Use spaces not tabs python disallows mixing tabs and spaces for indentation.
  • Limit all lines to a maximum of 79 characters.
  • Should a line break before or after binary operator? In Python code, it is permissible to break before or after a binary operator, as long as the convention is consistent locally.
  • Surround top-level function and class definitions with two blank lines.
  • Code in the core Python distribution should always use UTF-8, and should not have an encoding declaration.

Imports should be grouped in the following order:

  1. Standard library imports.
  2. Related third party imports.
  3. Local application/library specific imports.
    Wildcard imports (from import *) should be avoided.

Naming Conventions

Naming conventions are the most important pillar in maintaining the code consistency and readability there is as such no rule book to define the naming conventions but PEP 8 has recommendation that is good to follow.

  • Never use the characters ‘l’ , ‘O’ , or ‘I’ (uppercase letter eye) as single character variable names. In some fonts, these characters are indistinguishable from the numerals one and zero.
  • Class names should normally use the Cap Words (Camel case) convention.
  • Variables and function names should have all lowercase letters and underscores to separate words.
  • Constant should have all uppercase letters with words separated by underscores
  • Use the suffix «Error» on your exception names (if the exception actually is an error).
  • Use self for the first argument to instance methods or class methods.

String Quotes

  • In Python, single-quoted strings and double-quoted strings are the same. PEP does not make a recommendation for this. Pick a rule and stick to it. When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string. It improves readability.
  • Whitespace in Expression and Statement
  • Avoid trailing whitespace anywhere. Because it’s usually invisible, it can be confusing: e.g. a backslash followed by a space and a newline does not count as a line continuation marker.
  • Always surround these binary operators with a single space on either side: assignment (=), augmented assignment (+=, -= etc.), comparisons (==, <, >, !=, <>, <=, >=, in, not in, is, is not), Booleans (and, or, not).
  • Use whitespace to communicate order of operations. x = 12*y + 22*z.
  • Avoid excessive whitespace immediately inside of parenthesis, brackets, or braces.

When to use trailing commas

  • Trailing commas are usually optional, except they are mandatory when making a tuple of one element. For clarity, it is recommended to surround the latter in parentheses:
# Correct:
FILES = ('setup.cfg',)
# Wrong:
FILES = 'setup.cfg',

Enter fullscreen mode

Exit fullscreen mode

Programming Recommendations

  • Comparisons to singletons like None should always be done with is or is not, never the equality operators.
  • Use is notoperator rather than not … is for e.g if foo is not None rather than if not foo is None:
  • When implementing ordering operations with rich comparisons, it is best to implement all six operations (eq, ne, lt, le, gt, ge) rather than relying on other code to only exercise a particular comparison.
  • When catching exceptions, mention specific exceptions whenever possible instead of using a bare except.
  • Object type comparisons should always use isinstance() instead of comparing types directly.

Comments

Each line of a block comment starts with a # and a single space.
Use inline comments only if it is unavoidable.
Write docstrings for all public modules, functions, classes, and methods.
Docstrings are not necessary for non-public methods, but you should have a comment that describes what the method does.

For more detailing on the PEP 8 guidelines please check out the official documentation PEP 8 Guidelines

Conclusion

Likewise pycodestyle there is flake8 which is also widely used for checking the code style PEP 8 guidelines in python code. It’s always better to have these plugins in the ide and everytime you save or commit it will highlight the violations.
Maintaining the code style guideline helps in better readability and code consistency. Although it’s a good to have but always prefer to have coding guidelines while writing code.

The E226 error code is about «missing whitespace around arithmetic operator».

I use Anaconda’s package in Sublime which will highlight as a PEP8 E226 violation for example this line:

hypot2 = x*x + y*y
But in Guido’s PEP8 style guide that line is actually shown as an example of recommended use of spaces within operators.

So, which is the correct guideline? Always spaces around operators or just in some cases?

Also, who decides what goes into PEP8? I would’ve thought Guido’s recommendation would pretty much determine how that works.







May 23, 2019


in Python


by



• 7,910 points





347 views



1 answer to this question.

The maintainers of the PEP8 tool decide what goes into it.

As you noticed, these do not always match the PEP8 style guide exactly. In this particular case, I don’t know whether it’s an oversite by the maintainers, or a deliberate decision. You’d have to ask them to find out, or you might find the answer in the commit history.

Guido recently asked the maintainers of pep8 and pep257 tools to rename them, to avoid this confusion.






answered

May 23, 2019


by
SDeb


• 13,300 points



Related Questions In Python

  • All categories

  • ChatGPT
    (11)

  • Apache Kafka
    (84)

  • Apache Spark
    (596)

  • Azure
    (145)

  • Big Data Hadoop
    (1,907)

  • Blockchain
    (1,673)

  • C#
    (141)

  • C++
    (271)

  • Career Counselling
    (1,060)

  • Cloud Computing
    (3,469)

  • Cyber Security & Ethical Hacking
    (162)

  • Data Analytics
    (1,266)

  • Database
    (855)

  • Data Science
    (76)

  • DevOps & Agile
    (3,608)

  • Digital Marketing
    (111)

  • Events & Trending Topics
    (28)

  • IoT (Internet of Things)
    (387)

  • Java
    (1,247)

  • Kotlin
    (8)

  • Linux Administration
    (389)

  • Machine Learning
    (337)

  • MicroStrategy
    (6)

  • PMP
    (423)

  • Power BI
    (516)

  • Python
    (3,193)

  • RPA
    (650)

  • SalesForce
    (92)

  • Selenium
    (1,569)

  • Software Testing
    (56)

  • Tableau
    (608)

  • Talend
    (73)

  • TypeSript
    (124)

  • Web Development
    (3,002)

  • Ask us Anything!
    (66)

  • Others
    (2,231)

  • Mobile Development
    (395)

  • UI UX Design
    (24)

Subscribe to our Newsletter, and get personalized recommendations.

Already have an account? Sign in.

Понравилась статья? Поделить с друзьями:
  • Ошибка e225 python
  • Ошибка e225 001
  • Ошибка e22 электролюкс
  • Ошибка e22 стиральная машина gorenje
  • Ошибка e22 стиральная машина electrolux