Re: Qustion about struct.unpack

2007-05-01 Thread OhKyu Yoon
Wow, thank you all! "Gabriel Genellina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > En Tue, 01 May 2007 05:22:49 -0300, eC <[EMAIL PROTECTED]> escribió: > >> On Apr 30, 9:41 am, Steven D'Aprano <[EMAIL PROTECTED]> >> wrote: >>> On Mon, 30 Apr 2007 00:45:22 -0700, OhKyu Yoon wrot

Re: Qustion about struct.unpack

2007-05-01 Thread Gabriel Genellina
En Tue, 01 May 2007 05:22:49 -0300, eC <[EMAIL PROTECTED]> escribió: > On Apr 30, 9:41 am, Steven D'Aprano <[EMAIL PROTECTED]> > wrote: >> On Mon, 30 Apr 2007 00:45:22 -0700, OhKyu Yoon wrote: >> > I have a really long binary file that I want to read. >> > The way I am doing it now is: >> >> > fo

Re: Qustion about struct.unpack

2007-05-01 Thread eC
On Apr 30, 9:41 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Mon, 30 Apr 2007 00:45:22 -0700, OhKyu Yoon wrote: > > Hi! > > I have a really long binary file that I want to read. > > The way I am doing it now is: > > > for i in xrange(N): # N is about 10,000,000 > > time = struct.unpack(

Re: Qustion about struct.unpack

2007-04-30 Thread Steven D'Aprano
On Mon, 30 Apr 2007 00:45:22 -0700, OhKyu Yoon wrote: > Hi! > I have a really long binary file that I want to read. > The way I am doing it now is: > > for i in xrange(N): # N is about 10,000,000 > time = struct.unpack('=', infile.read(8)) > # do something > tdc = struct.unpack('

Qustion about struct.unpack

2007-04-30 Thread OhKyu Yoon
Hi! I have a really long binary file that I want to read. The way I am doing it now is: for i in xrange(N): # N is about 10,000,000 time = struct.unpack('=', infile.read(8)) # do something tdc = struct.unpack('=LiLiLiLi',self.lmf.read(32)) # do something Each loop takes about