Skip to content
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

Use Python 3.7+ sys.stdin.reconfigure if available #10

Open
jayvdb opened this issue Jul 26, 2019 · 1 comment
Open

Use Python 3.7+ sys.stdin.reconfigure if available #10

jayvdb opened this issue Jul 26, 2019 · 1 comment

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Jul 26, 2019

Python 3.7 adds a new stdin method to set its encoding, so we could do the following when an encoding is given:

sys.stdin.reconfigure(encoding=encoding)

And potentially see if that reconfigure code is backportable.

@jayvdb
Copy link
Contributor Author

jayvdb commented Aug 3, 2019

Like bskinn/stdio-mgr#33 , we probably should look for an existing backport.

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

No branches or pull requests

1 participant