Split a list into two parts based on a filter?

rusi rustompmody at gmail.com
Tue Jun 11 14:13:49 EDT 2013


On Jun 11, 10:37 pm, Chris Angelico <ros... at gmail.com> wrote:
> On Wed, Jun 12, 2013 at 3:23 AM, rusi <rustompm... at gmail.com> wrote:
> > On Jun 11, 10:05 pm, Fábio Santos <fabiosantos... at gmail.com> wrote:
> >> On 11 Jun 2013 17:47, "rusi" <rustompm... at gmail.com> wrote:
>
> >> > [Of course I would prefer a 3-liner where the body of the for is
> >> > indented :-) ]
>
> >> Is this an aside comprehension?
>
> > Eh?
>
> I know they always say "don't explain the joke", but I'll have a shot
> at it. It's somewhat like an autopsy though - you find out why it
> ticks, but in the process, you prove that it's no longer ticking...

Ok :-)

Missed that my aside looked like a comprehension. Or rather did not
comprehend!



More information about the Python-list mailing list