mmap file won't open properly with Linux

Jeff Epler jepler at unpythonic.net
Sat Nov 8 15:34:26 EST 2003


Read the documentation more carefully.  The "0 means length of file"
trick only works on windows, apparently.

You can use os.fstat(fd).st_size to get the current size of an open
file, or os.stat(filename).st_size to get the current size of a file by
name.

Jeff





More information about the Python-list mailing list