This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Use FileRead and FileWrite in fileio.c on Windows
Type: enhancement Stage:
Components: Versions: Python 3.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jpe, sbt, vstinner
Priority: normal Keywords: patch

Created on 2013-04-13 21:10 by jpe, last changed 2022-04-11 14:57 by admin.

Files
File name Uploaded Description Edit
use_filerw.patch jpe, 2013-04-13 21:10 review
Messages (2)
msg186849 - (view) Author: John Ehresman (jpe) * Date: 2013-04-13 21:10
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).
msg186866 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-04-13 23:19
See issue #12939 which contains a patch.
History
Date User Action Args
2022-04-11 14:57:44adminsetgithub: 61923
2013-04-13 23:19:37vstinnersetmessages: + msg186866
2013-04-13 21:12:23pitrousetnosy: + vstinner, sbt
2013-04-13 21:10:54jpecreate