STINNER Victor <victor.stinner at haypocalc.com> added the comment: You should use the io module, it doesn't have the bug :) ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue12508> _______________________________________