accessing parts of large files with File.seek()

mhearne808[insert-at-sign-here]gmail[insert-dot-here]com mhearne808 at gmail.com
Wed Aug 8 12:46:25 EDT 2007


I'm having a problem with the File object's seek() method.
Specifically, I cannot use it to seek to a location in a binary file
that is greater than 2^31 (2147483648).  This seems unnecessarily
limiting, as it is common these days to have files larger than 2 GB.

Is there some LargeFile object out there that I can use to read my
file, which is approximately 3.3 GB in size?

Python version (freshly built from source this morning):
Python 2.5.1 (r251:54863, Aug  8 2007, 09:23:05)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin

Thanks,

Mike




More information about the Python-list mailing list