-
Notifications
You must be signed in to change notification settings - Fork 841
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
stdout redirect shouldn't set sys.stdout to None #2879
Comments
Closed with #2880. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
@willmcgugan This fix seems to be missing from the changelog of 0.29.0, but it's included, right? |
Wooops, when we reviewed your PR #2880 we should've asked you to add the fix entry to the changelog, but we forgot and we didn't add it later. |
It looks as though the
redirect_stdout(None)
(and stderr version) setssys.stdout
toNone
.Nothing has broken up until now, which suggest that the
print
function treatsNone
as a special case. However, this won't be the case wheresys.stdout
is expected to contain a file like object.This is the root cause of #2877 and #2878
The redirected stdout should go to dev/null. See
os.devnull
The text was updated successfully, but these errors were encountered: