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
General Windows stdout redirection not working #56571
Comments
Steps to repeat:
Behavior: close failed in file object destructor: 3.1.4: The file bar is created but empty. No printouts indicating that something went wrong. Expected behavior: Additional information: Workaround: Used software: |
The file association for .py is pythonw, which does exactly as you say, intentionally, so as to avoid problems with windows when running a GUI application. My understanding is that this caters to the most common use case on Windows: double clicking a .py file launching a Python GUI application. When running a python script in the console, use 'python', as in your example (or manually change your file association). |
"The file association for .py is pythonw" |
IMO the cause is actually the same as the one for bpo-9390, i.e. a bug in the Windows console. |
Ah, I should have known better than to rely on a memory instead of checking, since I don't use Windows much. My apologies. |
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: