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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2028> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com