[EMAIL PROTECTED]:
> Files aren't lists and thus don't have the functions for iteration.
> Try:
> def go():
>         for line in open("bobo.txt", "r").readlines():
>                 print line
> go()

CPython 2.1 has xreadlines, maybe Jython has it too.

Bye,
bearophile

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

Reply via email to