[issue10841] binary stdio

Glenn Linderman report at bugs.python.org
Thu Jan 6 12:15:57 CET 2011

Glenn Linderman <v+python at g.nevcal.com> added the comment:

Makes sense to me.  Still should document the open file parameter when passed an fd, and either tell the user that it should be O_BINARY, or that it will be O_BINARYd for them, whichever technique is chosen.  But having two newline techniques is bad, and if Python thinks it is tracking the file pointer, but Windows is doing newline translation for it, then it isn't likely tracking it correctly for random access IO.  So I think the choice should be that any fd passed in to open on Windows should get O_BINARYd immediately.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list