Python 1.5.2 and large files (Solaris 7)
Hrvoje Niksic
hniksic at srce.hr
Mon May 24 13:47:55 EDT 1999
"Fred L. Drake" <fdrake at cnri.reston.va.us> writes:
> Andreas Jung <ajung at sz-sb.de> wrote:
> > Does Python 1.5.2 support to read/write files larger than 2GB under
> > Solaris 7 ?
>
> Fredrik Lundh writes:
> > http://www.python.org/cgi-bin/todo.py?req=all#2.25
> > seems to imply that it does.
>
> See also:
>
> http://www.python.org/doc/current/lib/posix-large-files.html
>
> This page includes the compile flags you need for Solaris.
I'm happy to report that I actually tried to compile with these flags
and it seemed to work nicely. os.stat() behaved as expected with a
large file.
The only thing I don't like is that Long is returned even when the
size of a file is less than 2G. I'm not sure if that's a bug or a
feature, or what the consequences are.
More information about the Python-list
mailing list