On Wed, Aug 27, 2008 at 7:30 PM, Bruce Leban <bruce@leapyear.org> wrote:
[t for t in [t.strip() for t in text.split('\n')] if t != '']

Yes, and other ways could be found with imap/map, but I would find this simpler and more natural :

[t.strip() as s for t in text.split('\n') if s != '']

Regards
Tarek