Changes
Page history
Update Python coding guidelines
authored
Oct 21, 2021
by
Moreau Nicolas
Show whitespace changes
Inline
Side-by-side
Python-coding-guidelines.md
View page @
ed54426d
...
...
@@ -11,21 +11,21 @@ Continuation lines should align wrapped elements either vertically using Python'
Correct:
`# Aligned with opening delimiter.
`
``
`
# Aligned with opening delimiter.
`
foo = long_function_name(var_one, var_two,
`
foo = long_function_name(var_one, var_two,
`
var_three, var_four)`
var_three, var_four)`
``
`
# Add 4 spaces (an extra level of indentation) to distinguish arguments from the rest.`
# Add 4 spaces (an extra level of indentation) to distinguish arguments from the rest.`
`def long_function_name(
`
``
`
def long_function_name(
`
var_one, var_two, var_three,
`
var_one, var_two, var_three,
`
var_four):
`
var_four):
`
print(var_one)`
print(var_one)`
``
`# Hanging indents should add a level.`
...
...
...
...