[issue8840] io.StringIO: truncate+print disabled in 3.1.2

Antoine Pitrou report at bugs.python.org
Fri May 28 02:16:13 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

This was an exceptional API change in 3.1.2: truncate() doesn't move the file pointer anymore, you have to do it yourself (with seek(0) in your case). I'm sorry for the inconvenience; the change was motivated by the desire of having an API more consistent with other file-handling APIs out there.

----------
nosy: +pakal, pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8840>
_______________________________________


More information about the Python-bugs-list mailing list