[Python-checkins] CVS: python/dist/src/Lib/test test_largefile.py,1.7,1.8

Fredrik Lundh fredrik@pythonware.com
Thu, 6 Sep 2001 15:59:05 +0200

Sjoerd wrote:
> > which means that issubclass(Irix, Unix) is false.
> That's nonsense.  Where in the definition of Unix does it say that file
> systems are never allowed to allocate blocks when you seek past the end
> of a file?

quoth the Single Unix Specification:

    Seek will allow the file offset to be set beyond the end of
    the existing data in the file. If data is later written at this
    point, subsequent reads of data in the gap will return bytes
    with the value 0 until data is actually written into the gap.
    Seek will not, by itself, extend the size of a file.

> It's one of the great things of modern Unices that you can (relatively)
> easily plug in a different file system if you so desire.

as long as it behaves as it should, sure.