En Fri, 23 Mar 2007 18:27:25 -0300, Mark Nenadov <[EMAIL PROTECTED]> escribió:
> I'd suggest doing the following instead of that while loop: > > for line in open(sys.argv[1]).xreadlines(): Poor xreadlines method had a short life: it was born on Python 2.1 and got deprecated on 2.3 :( A file is now its own line iterator: f = open(...) for line in f: ... -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list