]> granicus.if.org Git - python/commit
- Issue #6939: Fix file I/O objects in the `io` module to keep the original
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 31 Jan 2010 22:26:04 +0000 (22:26 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 31 Jan 2010 22:26:04 +0000 (22:26 +0000)
commitf3fa07470381b4f54b2d3f911fc22624e9b0b27d
tree5368b993641d34b3824a79896bf18c8f9097ce5c
parente70c72c06b169a36170ab68ec52bda9a87c16274
- Issue #6939: Fix file I/O objects in the `io` module to keep the original
  file position when calling `truncate()`.  It would previously change the
  file position to the given argument, which goes against the tradition of
  ftruncate() and other truncation APIs.  Patch by Pascal Chambon.
12 files changed:
Lib/_pyio.py
Lib/test/test_fileio.py
Lib/test/test_io.py
Lib/test/test_largefile.py
Lib/test/test_memoryio.py
Misc/ACKS
Misc/NEWS
Modules/_io/bytesio.c
Modules/_io/fileio.c
Modules/_io/iobase.c
Modules/_io/stringio.c
Modules/_io/textio.c