[Python-checkins] python/dist/src/Misc NEWS,1.1106,1.1107

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sat Aug 21 08:55:46 CEST 2004


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13308/Misc
Modified Files:
	NEWS 
Log Message:
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.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1106
retrieving revision 1.1107
diff -u -d -r1.1106 -r1.1107
--- NEWS	19 Aug 2004 17:52:37 -0000	1.1106
+++ NEWS	21 Aug 2004 06:55:42 -0000	1.1107
@@ -41,6 +41,11 @@
 Extension modules
 -----------------
 
+- Patch 1012740: truncate() on a writeable cStringIO now resets the
+ position to the end of the stream. This is consistent with the original
+ StringIO module and avoids inadvertently resurrecting data that was
+ supposed to have been truncated away.
+
 - Added socket.socketpair().
 
 Library
@@ -59,7 +64,7 @@
 - A new function tkFont.nametofont was added to return an existing
 font. The Font class constructor now has an additional exists argument
 which, if True, requests to return/configure an existing font, rather
- than creating a new one. 
+ than creating a new one.
 
 - Updated the decimal package's min() and max() methods to match the
 latest revision of the General Decimal Arithmetic Specification.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /