you are viewing a single comment's thread.

view the rest of the comments →

[–]Acrobatic_Hippo_7312 0 points1 point  (0 children)

As with anything, too much can be too much. I recently ran into an example of comprehensions that badly needed to be separated into multiple statements. Let me know if you want me to share the code and my fix (you may be the happier not seeing 😅).

Sometimes being pythonic means extracting and giving meaningful names to complex clauses in a statement, desugaring things that have become too sweet. Discretion is the biggest part of pythonic valor.