<div class="gmail_quote"><div dir="ltr">On Thu, Jun 28, 2018, 6:46 PM Nicolas Rolin <<a href="mailto:nicolas.rolin@tiime.fr">nicolas.rolin@tiime.fr</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>The questions I should have asked In my original post was :<br>- Is splitting lists into sublists (by grouping elements) a high level enough construction to be worthy of a nice integration in the comprehension syntax ?<br></div></div></div></div></blockquote></div><div><br></div><div>My intuition is no, it's not important enough to alter the syntax, despite being an important task.</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>- In which case, is there a way to find a simple syntax that is not too confusing ?<br></div></div></div></div></blockquote></div><div><br></div><div>If you'd like to give it a shot, try to find something which is currently invalid syntax, but does not break compatibility. The latter criteria means no new keywords. The syntax should look nice as a single line with reasonably verbose variable names.</div><div><br>One issue is that Python code is mostly 1-dimensional, characters in a line, and you're trying to express something which is 2-dimensional, in a sense. There's only so much you can do without newlines and indentation.<br></div>