X-Received: by 10.224.200.202 with SMTP id ex10mr11308011qab.8.1370971432636; Tue, 11 Jun 2013 10:23:52 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.196.227 with SMTP id ip3mr468371igc.10.1370971432594; Tue, 11 Jun 2013 10:23:52 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!p1no4602192qaj.0!news-out.google.com!y6ni1724qax.0!nntp.google.com!ch1no4072086qab.0!postnews.google.com!d8g2000pbe.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Tue, 11 Jun 2013 10:23:52 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: d8g2000pbe.googlegroups.com; posting-host=59.95.33.50; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui NNTP-Posting-Host: 59.95.33.50 References: <37e02d07-a058-48a2-9aad-80613f2df636@a15g2000pbu.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0,gzip(gfe) Message-ID: Subject: Re: Split a list into two parts based on a filter? From: rusi Injection-Date: Tue, 11 Jun 2013 17:23:52 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:47684 On Jun 11, 10:05=A0pm, F=E1bio Santos wrote: > On 11 Jun 2013 17:47, "rusi" wrote: > > > [Of course I would prefer a 3-liner where the body of the for is > > indented :-) ] > > Is this an aside comprehension? Eh? Its a for-loop. Same as: for s in songs: (new_songs if s.is_new() else old_songs).append(s) Maybe you are unfamiliar with the line ... A suite can be one or more semicolon-separated simple statements on the same line as the header, ?? from http://docs.python.org/2/reference/compound_stmts.html Or you are joking?? What with the offside rule (indentation rule in Haskell) becoming the 'aside rule' causing (in)comprehension in reading comprehensions?? Ok... Jokes aside... Dunno what you are asking.