New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port sysmodule.c to MS Windows CE #49165
Comments
The attached patch is for sysmodule.c, it contains two changes:
|
The S_ISDIR test is to prevent the case python < /etc Is it really possible to invoke Python in such a way on CE? If not, it |
I don't really know what happens when you try to read()/fread() from I'll submit a changed patch that has the opening curly brackets |
Changed patch with curly brackets outside the conditional code. |
Without the explicit check, the interpreter crashed; this was the
I just tried to run python.exe < c:\python25 on W2k3, and get "Access denied" (instead of getting the error http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx explains: you must pass FILE_FLAG_BACKUP_SEMANTICS, which Not sure whether this all applies to CE, though.
It does hurt. It clutters the code. So if it could be determined |
The CE documentation mentions directories, too, but is silent on the I can also confirm that you get an error if you try to redirect stdin Do you want to remove the whole check for MS Windows then? Are you |
Yes, please. A comment that you can't really redirect from a dir
That's fine - I trust you that the code is not needed on CE. |
Next attempt, exclude all win variants from check. |
Thanks for the patch. Committed as r68540, r68541. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: