10000 Added whitespace peeve for before attribute access by IanLee1521 · Pull Request #36 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

Added whitespace peeve for before attribute access #36

New issue

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

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pep-0008.txt
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,12 @@ Avoid extraneous whitespace in the following situations:
Yes: dct['key'] = lst[index]
No: dct ['key'] = lst [index]

- Immediately before the dot that starts an attribute access or
function / method call::

Yes: dct.items()
No: dct .items()

- More than one space around an assignment (or other) operator to
align it with another.

Expand Down
0