Skip Montanaro <[email protected]>: > Running flake8 over some code which has if statements with multiple > conditions like this: > > if (some_condition and > some_other_condition and > some_final_condition): > play_bingo() > [...] > > is there a better way to break lines I'm missing which will make > flake8 happy?
This is the idiomatic way:
if some_condition and \
some_other_condition and \
some_final_condition:
play_bingo()
Marko
--
https://mail.python.org/mailman/listinfo/python-list
