[New-bugs-announce] [issue8558] StringIO().truncate causes zero-bytes in getvalue()

holger krekel report at bugs.python.org
Wed Apr 28 12:46:46 CEST 2010

New submission from holger krekel <holger.krekel at gmail.com>:

Running the attached file with python3.1.1 works fine, all assertions pass.  Running it with 3.1.2 gives me this output: 

$ python3.1.2/bin/python3.1 stringio_fail.py
Traceback (most recent call last):
  File "stringio_fail.py", line 12, in <module>
    assert s == "world", repr(s)
AssertionError: '\x00\x00\x00\x00\x00world'

components: IO
files: stringio_fail.py
messages: 104423
nosy: hpk
priority: normal
severity: normal
status: open
title: StringIO().truncate causes zero-bytes in getvalue()
type: behavior
versions: Python 3.1
Added file: http://bugs.python.org/file17116/stringio_fail.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list