File I/O

HMS Surprise john at datavoiceint.com
Wed May 9 17:43:10 EDT 2007


> [lst.append(list(line.split())) for line in file]

Thanks, this is the direction I wanted to go, BUT I must use v2.2 so
the line above gives me the error:

AttributeError: __getitem__


But the write format will be helpful.

Thanks again,

jh




More information about the Python-list mailing list