Skip to content

Direct print() to sys.stdout #1846

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

Merged
merged 1 commit into from
Apr 8, 2020
Merged

Conversation

coolreader18
Copy link
Member

@coolreader18 coolreader18 commented Apr 7, 2020

This allows e.g. contextlib.redirect_stdout to work with print()

@coolreader18 coolreader18 requested a review from youknowone April 8, 2020 15:22
@youknowone
Copy link
Member

I don't think I know enough about this topic. Could anyone review this PR? @palaviv @windelbouwman

@coolreader18 coolreader18 force-pushed the coolreader18/print-sys-stdout branch from 30a6de3 to 505341d Compare April 8, 2020 16:30
@coolreader18 coolreader18 force-pushed the coolreader18/print-sys-stdout branch from 505341d to 2cd42c5 Compare April 8, 2020 17:10
@coolreader18 coolreader18 changed the title print() to sys.stdout if it's not actually stdout Direct print() to sys.stdout Apr 8, 2020
Copy link
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version looks a lot simpler :)

@coolreader18 coolreader18 merged commit 3eb687d into master Apr 8, 2020
@coolreader18 coolreader18 deleted the coolreader18/print-sys-stdout branch April 8, 2020 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants