google / google/yapf

Spaces is slice operator

Open
#172 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

Isn't this code from readme contradict pip8 about spaces around the slice operator?
def f(a):
return 37 + -+a[42 - x:y *\* 3]

exactly:
https://www.python.org/dev/peps/pep-0008/#pet-peeves Item 3:

No:
ham[lower + offset:upper + offset]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.