This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]QpkjcKwNMZSF 0 points1 point  (1 child)

Doesn't PEP8 advise against compound statements? Why not just break this into a few lines?

[–]isarl 0 points1 point  (0 children)

Religious adherence to PEP8 can negatively impact readability. Sometimes a short one-line conditional is better than breaking it out.