diff --git a/pep-0008.txt b/pep-0008.txt index a3ea5b220c5..b1782f6e15e 100644 --- a/pep-0008.txt +++ b/pep-0008.txt @@ -465,12 +465,12 @@ Avoid extraneous whitespace in the following situations: - Immediately before a comma, semicolon, or colon:: # Correct: - if x == 4: print x, y; x, y = y, x + if x == 4: print(x, y); x, y = y, x :: # Wrong: - if x == 4 : print x , y ; x , y = y , x + if x == 4 : print(x , y) ; x , y = y , x - However, in a slice the colon acts like a binary operator, and should have equal amounts on either side (treating it as the