Re:Python List Comprehensions Explained Visually
by gary_bernhardt on Wednesday December 02, 2015 @06:24PM
(#10666638)
Yes, that's very common formatting (except for the whitespace immediately inside the square brackets, which violates PEP 8, but that's incidental to the question of line breaks).
Is it not normal to do that? I always lay out the nested ones, and even single comprehensions if the conditional is complex.