[issue2028] _fmode = O_TEXT is obsolete

Facundo Batista report at bugs.python.org
Thu Feb 7 13:38:50 CET 2008


Facundo Batista added the comment:

O_TEXT is not obsolete, as the behaviour is different even in a win2k.

>>> a = open("ubuntu-6.06.1-server-i386.iso")
>>> len(a.read())
46424
>>> a = open("ubuntu-6.06.1-server-i386.iso", "rb")
>>> len(a.read())
453132288

I agree that the default should be Binary. Note that this would break
too much in Py2, so if happens it will need to be done in Py3.

BTW, I don't know if this was already discussed, approved, rejected, etc.

----------
nosy: +facundobatista
versions: +Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2028>
__________________________________


More information about the Python-bugs-list mailing list