You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code example below, autopep8 removes a whitespace before the ":" array slice operator, turning
v = input[n * 16 : n * 16 + 15]
into
v = input[n * 16: n * 16 + 15]
I believe this is a bug. According to the PEP 8 documentation here https://peps.python.org/pep-0008/#whitespace-in-expressions-and-statements
it says:
"However, in a slice the colon acts like a binary operator, and should have equal amounts on either side (treating it as the operator with the lowest priority)."
In the code example below, autopep8 removes a whitespace before the ":" array slice operator, turning
into
I believe this is a bug. According to the PEP 8 documentation here
https://peps.python.org/pep-0008/#whitespace-in-expressions-and-statements
it says:
"However, in a slice the colon acts like a binary operator, and should have equal amounts on either side (treating it as the operator with the lowest priority)."
Python Code
Command Line and Configuration
Command Line
$ autopep8 [file]
Your Environment
The text was updated successfully, but these errors were encountered: