[Patches] [ python-Patches-951915 ] fix bug in StringIO.truncate -
length not changed
SourceForge.net
noreply at sourceforge.net
Wed May 12 11:34:06 EDT 2004
Patches item #951915, was opened at 2004-05-11 14:07
Message generated for change (Comment added) made by arigo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=951915&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: David Fraser (davidfraser)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix bug in StringIO.truncate - length not changed
Initial Comment:
If truncate() is called on a StringIO object, the
length is not changed, so that seek(0, 2) calls will go
beyond the correct end of the file.
This patch adds a line to update the length, and a test
to the test method that checks that it works.
----------------------------------------------------------------------
>Comment By: Armin Rigo (arigo)
Date: 2004-05-12 15:34
Message:
Logged In: YES
user_id=4771
StringIO.py needs to be reviewed. I could spot several other (though more minor) problems in a couple of minutes.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=951915&group_id=5470
More information about the Patches
mailing list