LeighExchange - Free Advertising Network Stock Research at Internet Speed Need Money Easy and Quick?
> 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