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
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
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(
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('
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