[issue9124] Mailbox module should use binary I/O, not text I/O

STINNER Victor report at bugs.python.org
Sat Jan 29 12:40:06 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

+            if isinstance(message, io.TextIOWrapper):
+                # Backward compatibility hack.
+                message = message.buffer

Is it a good thing to parse a mailbox using a text file? If not, we should emit a warning and maybe remove this feature in Python 3.3.

----------

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


More information about the Python-bugs-list mailing list