3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 1540
/ 1 Year ago, mon, march 27, 2023, 3:15:42
I have function which consists of 1 line. It is something like:
return [item for item in list if something_very_long and something_else_very_long] == []
How is it most appropriate to separate this statement to adhere to PEP-8 guidelines of keeping a maximum of 79 characters per line? I couldn't find an example like this in PEP-8 documentation.
More From » python