You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use FileRead and FileWrite in fileio.c on Windows #61923
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2013-04-13.21:10:54.124>labels= ['type-feature']
title='Use FileRead and FileWrite in fileio.c on Windows'updated_at=<Date2013-04-13.23:19:37.906>user='https://bugs.python.org/jpe'
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 bpo-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).
Activity
jpe commentedon Apr 13, 2013
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 bpo-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).
vstinner commentedon Apr 13, 2013
See issue bpo-12939 which contains a patch.