Bob Smith wrote:

To do this efficiently on a large file (dozens or hundreds of megs), you should use the 'sizehint' parameter so as not to use too much memory:

sizehint = 0
mylist = f.readlines(sizehint)

It doesn't make any difference. .readlines reads the entire file into memory at once.


--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
  Can I lay with you / As your wife
  -- India Arie
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to