On 10 Jun 2013 23:54, "Roel Schroeven" <r...@roelschroeven.net> wrote: > > You could do something like: > > new_songs, old_songs = [], [] > [(new_songs if s.is_new() else old_songs).append(s) for s in songs] > > But I'm not sure that that's any better than the long version.
This is so beautiful!
-- http://mail.python.org/mailman/listinfo/python-list