[EMAIL PROTECTED] wrote:
> while 1:
>         line = f.readline().rstrip("\n")
>         if line == '':
>                 break
>         #if not re.findall(r'^$',line):
>         print line
 
you want continue, not break there.  but that gives you an infinite loop, so
you need a new exit condition.  you're better off scrapping the while and
using a for loop or list comprehension on readline.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to