Georg Brandl added the comment: Looks good. > sys.stdout, when rebound to a binary mode file Not sure that is supported in any way :) ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22492> _______________________________________