-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PEP-8: clarify if multiline argument list with a closing )
on a separate line is acceptable
#1267
Comments
especially if you see this other example # Add a comment, which will provide some distinction in editors
# supporting syntax highlighting.
if (this_is_one_thing and
that_is_another_thing):
# Since both conditions are true, we can frobnicate.
do_something() where a comment is given as possible way to have only 1 indentation so at the very least the docstring should play the same role and allows : def long_function_name(
var_one, var_two, var_three,
var_four
):
"""The doc string is also a comment """
print(var_one) |
This repository is administrative and isn't the best place to discuss whether something should or shouldn't be recommended. I advise taking your question to python-list. |
Discourse may be a good place too: |
@hugovk thanks for the pointer, I will post there |
https://www.python.org/dev/peps/pep-0008/#indentation states
and then gives two examples
in yes it gives :
(with 1 indentation)
and in no it gives
my question:
is
"possible" ?
The text was updated successfully, but these errors were encountered: