Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8840>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to