]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
truncate() returns the new size and position.
authorGuido van Rossum <guido@python.org>
Tue, 10 Apr 2007 21:06:59 +0000 (21:06 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Apr 2007 21:06:59 +0000 (21:06 +0000)
commit8742977b33f2af9b92265c1b332af0f6798bf2b6
tree938cba4969aa85a38eaaf096b33c3a743b1bda2a
parent34d69e57e31763bdfcff77dc3689ec42a5228814
truncate() returns the new size and position.
write() returns the number of bytes/characters written/buffered.
FileIO.close() calls self.flush().
Implement readinto() for buffered readers.
Tests th check all these.
Test proper behavior of __enter__/__exit__.
Lib/io.py
Lib/test/test_io.py
Modules/_fileio.c