In article <[email protected]>,
 Roel Schroeven <[email protected]> wrote:

> new_songs, old_songs = [], []
> [(new_songs if s.is_new() else old_songs).append(s) for s in songs]

Thanks kind of neat, thanks.

I'm trying to figure out what list gets created and discarded.  I think 
it's [None] * len(songs).
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to