On Thu, Aug 23, 2012 at 4:16 AM, Alan Gauld <alan.ga...@btinternet.com> wrote:

> theTextAsListNoVnOrVtOrEmptyLine = [x for x in theTextAsListStripped
>                                                 if "vn" not in x
>                                                 if "vt" not in x
>                                                 if x!= ""]
>
> It's slightly more verbose but it makes the rules more explicit, IMHO.

I agree, it seems easier to read when written on multiple lines. I'll
do it that way,
Thanks
Pete
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to