arogozhnikov / python3_with_pleasure

A short guide on features of Python 3 with examples
3.63k stars 199 forks source link

PEP 8 compliance #24

Closed lebigot closed 6 years ago

arogozhnikov commented 6 years ago

Does pep8 actually requires wrapping multiline expressions in parentheses?

lebigot commented 6 years ago

PEP 8 repeatedly advises against using backslashes (unless when absolutely needed, like in long with statements): you can search for "backslash" or "\" in the following paragraphs:

The standard line continuation solution consists in using parentheses, brackets, etc. (https://www.python.org/dev/peps/pep-0008/#indentation).