]> granicus.if.org Git - python/commit
Change Windows file.truncate() to (a) restore the original file position,
authorTim Peters <tim.peters@gmail.com>
Tue, 12 Mar 2002 03:04:44 +0000 (03:04 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 12 Mar 2002 03:04:44 +0000 (03:04 +0000)
commit8f01b680c85853948591c28ceae356760e7c7c33
tree5f5010a50ee3f6bacdb34076a5af115fa425b94b
parent9d142adfce027096a5c80dcaf7193b510cf7f984
Change Windows file.truncate() to (a) restore the original file position,
and (b) stop trying to prevent file growth.

Beef up the file.truncate() docs.

Change test_largefile.py to stop assuming that f.truncate() moves the
file pointer to the truncation point, and to verify instead that it leaves
the file position alone.  Remove the test for what happens when a
specified size exceeds the original file size (it's ill-defined, according
to the Single Unix Spec).
Doc/lib/libstdtypes.tex
Lib/test/test_largefile.py
Objects/fileobject.c