Cannot find what I'm sure is a simple command... please help.

Hamish Lawson hamish_lawson at yahoo.co.uk
Mon Apr 1 08:23:01 EST 2002


> Right, I knew I could do that.  However, when I did that, it causes a
> meltdown when I index from that list, owing to the large size of the
> file (it's a database, with each entry on a separate line, but with an
> arbitrary line size).

The third-party 'textlines' module trades speed for memory efficency.
by providing a read-on-demand substitute for file.readlines(),
returning a randomly accessible sequence that reads lines as they're
requested.

    http://www.cs.brandeis.edu/~steele/sources/python.html

Hamish Lawson



More information about the Python-list mailing list