commit | b636dc67ed3c351d9631a7900ea05c3394a99518 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Oct 12 16:45:37 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Oct 12 16:45:37 2000 +0000 |
tree | abc7c1192f0a6fd47535a4d92df8fba3daee6216 | |
parent | 2e2a70abe48d84846fde5e9a64450f8b0c9934b2 [diff] |
[ Bug #116636 ] Bug in StringIO.write() http://sourceforge.net/bugs/?func=detailbug&bug_id=116636&group_id=5470 bobalex@rsv.ricoh.com Bug report: If the file position is less than the end of the "file", and a write is performed extending past then end of the file, the data string is corrupted. Solution: in write(), when writing past the end, properly set self.len when newpos is > self.len.