Mercurial > cpython-lru_cache-weakref
diff Modules/cStringIO.c @ 33213:db1bafa9b656 legacy-trunk
Patch 1012740: cStringIO's truncate doesn't
truncate() left the stream position unchanged, which meant the
"truncated" data didn't go away:
>>> io.write('abc')
>>> io.truncate(0)
>>> io.write('xyz')
>>> io.getvalue()
'abcxyz'
Patch by Dima Dorfman.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sat, 21 Aug 2004 06:55:43 +0000 |
| parents | 64534fb3afcd |
| children | e0a9f66b7014 774bf9a38b2a |
line wrap: on
line diff
