New submission from John Ehresman: File object's can use the win32 api FileRead and FileWrite instead of the CRT's read & write function. This would eliminate the need to set the mode to binary on stdin & stdout, which is the underlying cause of issue 16587. This could also possibly be the basis of adding nonblocking functionality. An initial patch is attached, but I still need to verify what this does to the CRT mode of files that are opened by python (rather than already be opened, like stdin & stdout are).
---------- files: use_filerw.patch keywords: patch messages: 186849 nosy: jpe priority: normal severity: normal status: open title: Use FileRead and FileWrite in fileio.c on Windows type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file29829/use_filerw.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17723> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com