Re: "Faster" I/O in a script

2008-06-04 Thread Kris Kennaway
Gary Herron wrote: [EMAIL PROTECTED] wrote: On Jun 2, 2:08 am, "kalakouentin" <[EMAIL PROTECTED]> wrote: Do you know a way to actually load my data in a more "batch-like" way so I will avoid the constant line by line reading? If your files will fit in memory, you can just do text =

Re: "Faster" I/O in a script

2008-06-03 Thread Michael Torrie
kalakouentin wrote: > I use python in order to analyze my data which are in a text form. The > script is fairly simple. It reads a line form the input file, computes > what it must compute and then write it it to a buffer/list. When the > whole reading file is processed (essential all lines) then t

Re: "Faster" I/O in a script

2008-06-02 Thread Gary Herron
[EMAIL PROTECTED] wrote: On Jun 2, 2:08 am, "kalakouentin" <[EMAIL PROTECTED]> wrote: Do you know a way to actually load my data in a more "batch-like" way so I will avoid the constant line by line reading? If your files will fit in memory, you can just do text = file.readlines() a

Re: "Faster" I/O in a script

2008-06-02 Thread miller . paul . w
On Jun 2, 2:08 am, "kalakouentin" <[EMAIL PROTECTED]> wrote: > Do you know a way to actually load my data in a more > "batch-like" way so I will avoid the constant line by line reading? If your files will fit in memory, you can just do text = file.readlines() and Python will read the entire fi

Re: "Faster" I/O in a script

2008-06-02 Thread Gary Herron
kalakouentin wrote: I use python in order to analyze my data which are in a text form. The script is fairly simple. It reads a line form the input file, computes what it must compute and then write it it to a buffer/list. When the whole reading file is processed (essential all lines) then the alg